Bug 1024444 - Fix minor bug with arguments object aliasing and Baseline. r=luke

This commit is contained in:
Jan de Mooij 2014-06-17 11:28:41 +02:00
parent 16b38eb033
commit e54f44f292
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
function f(x) {
x = eval("a = arguments.callee.arguments; 10");
}
for (var i=0; i<5; i++) {
f(5);
assertEq(a[0], 10);
}

View File

@ -156,7 +156,7 @@ struct CopyScriptFrameIterArgs
* invalid.
*/
void maybeForwardToCallObject(JSObject *obj, ArgumentsData *data) {
if (!iter_.isJit())
if (!iter_.isIon())
ArgumentsObject::MaybeForwardToCallObject(iter_.abstractFramePtr(), obj, data);
}
};