Clear GetSrcNote cache in js_UntrapScriptCode (431428, r/a=shaver).

This commit is contained in:
brendan@mozilla.org 2008-04-29 19:18:19 -07:00
parent 471e1a5027
commit 3d10ff4835

View File

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