Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 94fee79b7658556788f4dc5f23e12ac91b7caed6..661b9e601d283c94845408fa800a2311adf4cc54 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -859,9 +859,13 @@ Failure* Isolate::StackOverflow() { |
Handle<Object> error = |
GetProperty(js_builtins_object(), "$Error").ToHandleChecked(); |
if (!error->IsJSObject()) return Failure::Exception(); |
+ |
+ Handle<String> stackTraceLimit = |
+ factory()->InternalizeUtf8String("stackTraceLimit"); |
+ ASSERT(!stackTraceLimit.is_null()); |
Handle<Object> stack_trace_limit = |
- GetProperty( |
- Handle<JSObject>::cast(error), "stackTraceLimit").ToHandleChecked(); |
+ JSObject::GetDataProperty(Handle<JSObject>::cast(error), |
+ stackTraceLimit); |
if (!stack_trace_limit->IsNumber()) return Failure::Exception(); |
double dlimit = stack_trace_limit->Number(); |
int limit = std::isnan(dlimit) ? 0 : static_cast<int>(dlimit); |