diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index 40b4365f69a..c16cbf0ca5c 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -911,8 +911,8 @@ js_CheckPrincipalsAccess(JSContext *cx, JSObject *scopeobj, return JS_TRUE; } -JSObject * -js_CheckScopeChainValidity(JSContext *cx, JSObject *scopeobj, const char *caller) +static JSObject * +CheckScopeChainValidity(JSContext *cx, JSObject *scopeobj, const char *caller) { JSObject *inner; @@ -1110,7 +1110,7 @@ obj_eval(JSContext *cx, uintN argc, Value *vp) #endif /* Ensure we compile this eval with the right object in the scope chain. */ - JSObject *result = js_CheckScopeChainValidity(cx, scopeobj, js_eval_str); + JSObject *result = CheckScopeChainValidity(cx, scopeobj, js_eval_str); JS_ASSERT_IF(result, result == scopeobj); if (!result) return JS_FALSE; diff --git a/js/src/jsobj.h b/js/src/jsobj.h index 1f632359254..4e494f3f02a 100644 --- a/js/src/jsobj.h +++ b/js/src/jsobj.h @@ -1298,12 +1298,6 @@ js_GetReservedSlot(JSContext *cx, JSObject *obj, uint32 index, js::Value *vp); extern bool js_SetReservedSlot(JSContext *cx, JSObject *obj, uint32 index, const js::Value &v); -/* - * Precondition: obj must be locked. - */ -extern JSObject * -js_CheckScopeChainValidity(JSContext *cx, JSObject *scopeobj, const char *caller); - extern JSBool js_CheckPrincipalsAccess(JSContext *cx, JSObject *scopeobj, JSPrincipals *principals, JSAtom *caller);