From 841369f9bb181fd88a3d61fde21ff5b48216f4a0 Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Tue, 19 Aug 2008 14:30:21 -0500 Subject: [PATCH] Bug 424991 - JS_GetScopeChain and JS_NewScriptObject should CHECK_REQUEST(cx) (r=crowder) --- js/src/jsapi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 9682a74614d9..dbd9a8c5520f 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -1768,6 +1768,7 @@ JS_GetScopeChain(JSContext *cx) { JSStackFrame *fp; + CHECK_REQUEST(cx); fp = cx->fp; if (!fp) { /* @@ -4699,6 +4700,7 @@ JS_NewScriptObject(JSContext *cx, JSScript *script) JSTempValueRooter tvr; JSObject *obj; + CHECK_REQUEST(cx); if (!script) return js_NewObject(cx, &js_ScriptClass, NULL, NULL, 0);