This commit is contained in:
Jim Blandy 2009-03-13 18:07:25 -07:00
parent f7ad0e9e06
commit 249eed4eb3

View File

@ -3155,11 +3155,7 @@ js_NewObjectWithGivenProto(JSContext *cx, JSClass *clasp, JSObject *proto,
}
}
/*
* Do not call debug hooks on trace, because we might be in a non-_FAIL
* builtin. See bug 481444.
*/
if (cx->debugHooks->objectHook && !JS_ON_TRACE(cx)) {
if (cx->debugHooks->objectHook) {
JS_KEEP_ATOMS(cx->runtime);
cx->debugHooks->objectHook(cx, obj, JS_TRUE,
cx->debugHooks->objectHookData);