| Index: src/debug.cc
|
| ===================================================================
|
| --- src/debug.cc (revision 9511)
|
| +++ src/debug.cc (working copy)
|
| @@ -2156,10 +2156,10 @@
|
| Factory* factory = isolate_->factory();
|
| // Create the new exception event object.
|
| const int argc = 3;
|
| - Object** argv[argc] = { exec_state.location(),
|
| - exception.location(),
|
| - uncaught ? factory->true_value().location() :
|
| - factory->false_value().location()};
|
| + Object** argv[argc] =
|
| + { exec_state.location(),
|
| + exception.location(),
|
| + factory->ToBoolean(uncaught).location() };
|
| return MakeJSObject(CStrVector("MakeExceptionEvent"),
|
| argc, argv, caught_exception);
|
| }
|
| @@ -2183,10 +2183,10 @@
|
| Handle<Object> exec_state = MakeExecutionState(caught_exception);
|
| Handle<Object> script_wrapper = GetScriptWrapper(script);
|
| const int argc = 3;
|
| - Object** argv[argc] = { exec_state.location(),
|
| - script_wrapper.location(),
|
| - before ? factory->true_value().location() :
|
| - factory->false_value().location() };
|
| + Object** argv[argc] =
|
| + { exec_state.location(),
|
| + script_wrapper.location(),
|
| + factory->ToBoolean(before).location() };
|
|
|
| return MakeJSObject(CStrVector("MakeCompileEvent"),
|
| argc,
|
|
|