Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ed functions. a=philor
  • Loading branch information...
commit f146991ea7f764fa7197e1b1789b25d1080d372c 1 parent 04ef766
@tschneidereit tschneidereit authored
Showing with 9 additions and 0 deletions.
  1. +6 −0 js/src/jsdbgapi.cpp
  2. +3 −0  js/src/jsdbgapi.h
View
6 js/src/jsdbgapi.cpp
@@ -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
3  js/src/jsdbgapi.h
@@ -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);
+
/************************************************************************/
/*
Please sign in to comment.
Something went wrong with that request. Please try again.