Permalink
Browse files

Bug 851788 - prevent jsd_SetExecutionHook from operating on self-host…

…ed functions. a=philor
  • Loading branch information...
1 parent 04ef766 commit f146991ea7f764fa7197e1b1789b25d1080d372c @tschneidereit tschneidereit committed Apr 23, 2013
Showing with 9 additions and 0 deletions.
  1. +6 −0 js/src/jsdbgapi.cpp
  2. +3 −0 js/src/jsdbgapi.h
View
@@ -612,6 +612,12 @@ JS_SetScriptUserBit(JSScript *script, bool b)
script->userBit = b;
}
+JS_PUBLIC_API(bool)
+JS_GetScriptIsSelfHosted(JSScript *script)
+{
+ return script->selfHosted;
+}
+
/***************************************************************************/
JS_PUBLIC_API(void)
View
@@ -231,6 +231,9 @@ JS_GetScriptUserBit(JSScript *script);
extern JS_PUBLIC_API(void)
JS_SetScriptUserBit(JSScript *script, bool b);
+extern JS_PUBLIC_API(bool)
+JS_GetScriptIsSelfHosted(JSScript *script);
+
/************************************************************************/
/*

0 comments on commit f146991

Please sign in to comment.