mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Clear GetSrcNote cache in js_UntrapScriptCode (431428, r/a=shaver).
This commit is contained in:
parent
892509c257
commit
1be496dd86
@ -120,6 +120,7 @@ js_UntrapScriptCode(JSContext *cx, JSScript *script)
|
||||
if (!code)
|
||||
break;
|
||||
memcpy(code, script->code, nbytes);
|
||||
JS_CLEAR_GSN_CACHE(cx);
|
||||
}
|
||||
code[trap->pc - script->code] = trap->op;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user