Bug 465808 - use FUN_OBJECT(callerFrame->fun) instead of potentially cloned callerFrame->callee; r=brendan

This commit is contained in:
Brian Crowder 2009-01-24 01:20:10 -08:00
parent 315b289f84
commit 1859a1f07b

View File

@ -549,7 +549,7 @@ js_CompileScript(JSContext *cx, JSObject *scopeChain, JSStackFrame *callerFrame,
* captured in case it uses an upvar reference, and someone wishes to
* decompile it while running.
*/
JSParsedObjectBox *pob = js_NewParsedObjectBox(cx, &pc, callerFrame->callee);
JSParsedObjectBox *pob = js_NewParsedObjectBox(cx, &pc, FUN_OBJECT(callerFrame->fun));
pob->emitLink = cg.objectList.lastPob;
cg.objectList.lastPob = pob;
cg.objectList.length++;