| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index ff55fab8c95f51359464eb2e80f05ab24c63b792..ed196fc230369feae516039ce7cb2ceaff5fd313 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -11878,11 +11878,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetFunctionBreakPoint) {
|
| // args[2]: number: break point object
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_SetScriptBreakPoint) {
|
| HandleScope scope(isolate);
|
| - ASSERT(args.length() == 3);
|
| + ASSERT(args.length() == 4);
|
| CONVERT_ARG_HANDLE_CHECKED(JSValue, wrapper, 0);
|
| CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]);
|
| RUNTIME_ASSERT(source_position >= 0);
|
| - Handle<Object> break_point_object_arg = args.at<Object>(2);
|
| + CONVERT_BOOLEAN_ARG_CHECKED(statement_alighned, 2);
|
| + Handle<Object> break_point_object_arg = args.at<Object>(3);
|
|
|
| // Get the script from the script wrapper.
|
| RUNTIME_ASSERT(wrapper->value()->IsScript());
|
| @@ -11890,7 +11891,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetScriptBreakPoint) {
|
|
|
| // Set break point.
|
| if (!isolate->debug()->SetBreakPointForScript(script, break_point_object_arg,
|
| - &source_position)) {
|
| + &source_position,
|
| + statement_alighned)) {
|
| return isolate->heap()->undefined_value();
|
| }
|
|
|
|
|