mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 825379 - IonMonkey: Differential Testing: Getting different output w/without --ion-eager with forEach. r=dvander
This commit is contained in:
parent
11ddeab0b2
commit
8852486dba
8
js/src/jit-test/tests/bug825379.js
Normal file
8
js/src/jit-test/tests/bug825379.js
Normal file
@ -0,0 +1,8 @@
|
||||
x = this
|
||||
y = {}
|
||||
y.v = "";
|
||||
[0, 0].forEach(function() {
|
||||
for (p in y) {
|
||||
x.eval("function f(){yield e}")
|
||||
}
|
||||
});
|
@ -463,8 +463,8 @@ JSContext::findVersion() const
|
||||
if (hasVersionOverride)
|
||||
return versionOverride;
|
||||
|
||||
if (stack.hasfp())
|
||||
return fp()->script()->getVersion();
|
||||
if (JSScript *script = stack.currentScript())
|
||||
return script->getVersion();
|
||||
|
||||
return defaultVersion;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user