mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 510434: don't trace setting |arguments|, r=brendan
This commit is contained in:
parent
24dfed2435
commit
25b6a55ac6
@ -8697,6 +8697,9 @@ TraceRecorder::record_JSOP_IFNE()
|
||||
JS_REQUIRES_STACK JSRecordingStatus
|
||||
TraceRecorder::record_JSOP_ARGUMENTS()
|
||||
{
|
||||
if (cx->fp->flags & JSFRAME_OVERRIDE_ARGS)
|
||||
ABORT_TRACE("Can't trace |arguments| if |arguments| is assigned to");
|
||||
|
||||
LIns* global_ins = INS_CONSTOBJ(globalObj);
|
||||
LIns* argc_ins = INS_CONST(cx->fp->argc);
|
||||
LIns* callee_ins = get(&cx->fp->argv[-2]);
|
||||
|
2
js/src/trace-test/tests/basic/bug510434.js
Normal file
2
js/src/trace-test/tests/basic/bug510434.js
Normal file
@ -0,0 +1,2 @@
|
||||
var f = function(){ var arguments = 3; for (var j=0;j<4;++j) print(arguments); };
|
||||
f();
|
Loading…
Reference in New Issue
Block a user