mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784295 - Part 1: Compile self-hosted JS in strict mode (in DEBUG builds). r=till
This commit is contained in:
parent
725d9a07c7
commit
94e96bb8cb
@ -664,7 +664,7 @@ function X4ProtoString(type) {
|
||||
assert(false, "Unhandled type constant");
|
||||
}
|
||||
|
||||
X4LaneStrings = ["x", "y", "z", "w"];
|
||||
var X4LaneStrings = ["x", "y", "z", "w"];
|
||||
|
||||
// Generalized handler for the various properties for accessing a
|
||||
// single lane of an X4 vector value. Note that this is the slow path;
|
||||
|
@ -779,6 +779,11 @@ JSRuntime::initSelfHosting(JSContext *cx)
|
||||
options.setCanLazilyParse(false);
|
||||
options.setSourcePolicy(CompileOptions::NO_SOURCE);
|
||||
options.setVersion(JSVERSION_LATEST);
|
||||
options.werrorOption = true;
|
||||
|
||||
#ifdef DEBUG
|
||||
options.strictOption = true;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set a temporary error reporter printing to stderr because it is too
|
||||
|
Loading…
Reference in New Issue
Block a user