Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index e20cd1a6ef4169598d8f47a4b93097c8d15d4eb9..bb5c11cb6b10388c2be0b967ddc31f685fb34739 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -403,6 +403,8 @@ class StackTraceHelper { |
Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSReceiver> error_object, |
Handle<Object> caller) { |
+ DisallowJavascriptExecution no_js(this); |
+ |
// Get stack trace limit. |
Handle<JSObject> error = error_function(); |
Handle<String> stackTraceLimit = |
@@ -738,6 +740,7 @@ int PositionFromStackTrace(Handle<FixedArray> elements, int index) { |
Handle<JSArray> Isolate::CaptureCurrentStackTrace( |
int frame_limit, StackTrace::StackTraceOptions options) { |
+ DisallowJavascriptExecution no_js(this); |
CaptureStackTraceHelper helper(this, options); |
// Ensure no negative values. |
@@ -921,6 +924,7 @@ bool Isolate::MayAccess(Handle<Context> accessing_context, |
Object* Isolate::StackOverflow() { |
+ DisallowJavascriptExecution no_js(this); |
HandleScope scope(this); |
// At this point we cannot create an Error object using its javascript |
// constructor. Instead, we copy the pre-constructed boilerplate and |