Bug 825379 - IonMonkey: Differential Testing: Getting different output w/without --ion-eager with forEach. r=dvander

This commit is contained in:
Jan de Mooij 2013-01-24 14:10:53 -05:00
parent 11ddeab0b2
commit 8852486dba
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,8 @@
x = this
y = {}
y.v = "";
[0, 0].forEach(function() {
for (p in y) {
x.eval("function f(){yield e}")
}
});

View File

@ -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;
}