Bug 454142. r=brendan, r=igor, a=beltzner

This commit is contained in:
Blake Kaplan 2008-11-28 18:15:06 -08:00
parent 46b8e136f7
commit f32e0ba3e6

View File

@ -1263,9 +1263,11 @@ js_AddScopeProperty(JSContext *cx, JSScope *scope, jsid id,
*/
if (!JS_CLIST_IS_EMPTY(&cx->runtime->watchPointList) &&
js_FindWatchPoint(cx->runtime, scope, id)) {
JS_PUSH_TEMP_ROOT_SPROP(cx, overwriting, &tvr);
if (overwriting)
JS_PUSH_TEMP_ROOT_SPROP(cx, overwriting, &tvr);
setter = js_WrapWatchedSetter(cx, id, attrs, setter);
JS_POP_TEMP_ROOT(cx, &tvr);
if (overwriting)
JS_POP_TEMP_ROOT(cx, &tvr);
if (!setter)
goto fail_overwrite;
}