mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Clear GetSrcNote cache in js_UntrapScriptCode (431428, r/a=shaver).
This commit is contained in:
parent
471e1a5027
commit
3d10ff4835
@ -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