diff options
Diffstat (limited to 'deps/v8/src/messages.cc')
-rw-r--r-- | deps/v8/src/messages.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/v8/src/messages.cc b/deps/v8/src/messages.cc index 432364919b..990000a32e 100644 --- a/deps/v8/src/messages.cc +++ b/deps/v8/src/messages.cc @@ -69,10 +69,13 @@ Handle<JSMessageObject> MessageHandler::MakeMessageObject( Handle<String> stack_trace, Handle<JSArray> stack_frames) { Handle<String> type_handle = Factory::LookupAsciiSymbol(type); - Handle<JSArray> arguments_handle = Factory::NewJSArray(args.length()); + Handle<FixedArray> arguments_elements = + Factory::NewFixedArray(args.length()); for (int i = 0; i < args.length(); i++) { - SetElement(arguments_handle, i, args[i]); + arguments_elements->set(i, *args[i]); } + Handle<JSArray> arguments_handle = + Factory::NewJSArrayWithElements(arguments_elements); int start = 0; int end = 0; @@ -87,7 +90,7 @@ Handle<JSMessageObject> MessageHandler::MakeMessageObject( ? Factory::undefined_value() : Handle<Object>::cast(stack_trace); - Handle<Object> stack_frames_handle = stack_frames.is_null() + Handle<Object> stack_frames_handle = stack_frames.is_null() ? Factory::undefined_value() : Handle<Object>::cast(stack_frames); |