Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 2110e7e7d1e76ab28df7a4d9459882fb8f5fd47b..e0e1c26bfd8ac4d9a0e76695dedd9b58d084b171 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -792,7 +792,7 @@ Object* Isolate::StackOverflow() { |
Handle<String> key = factory()->stack_overflow_string(); |
Handle<JSObject> boilerplate = Handle<JSObject>::cast( |
Object::GetProperty(js_builtins_object(), key).ToHandleChecked()); |
- Handle<JSObject> exception = JSObject::Copy(boilerplate); |
+ Handle<JSObject> exception = factory()->CopyJSObject(boilerplate); |
DoThrow(*exception, NULL); |
// Get stack trace limit. |