| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3ba0add commit c70ff44
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -652,7 +652,7 @@ class NodeInspectorClient : public V8InspectorClient { | |||
| 652 | 652 | ToInspectorString(isolate, message->Get())->string(), | |
| 653 | 653 | ToInspectorString(isolate, message->GetScriptResourceName())->string(), | |
| 654 | 654 | message->GetLineNumber(context).FromMaybe(0), | |
| 655 | - message->GetStartColumn(context).FromMaybe(0), | ||
| 655 | + message->GetStartColumn(), | ||
| 656 | 656 | client_->createStackTrace(stack_trace), | |
| 657 | 657 | script_id); | |
| 658 | 658 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,7 +65,7 @@ static std::string GetSourceMapErrorSource(Isolate* isolate, | |||
| 65 | 65 | // the source texts. | |
| 66 | 66 | Local<Value> script_resource_name = message->GetScriptResourceName(); | |
| 67 | 67 | int linenum = message->GetLineNumber(context).FromJust(); | |
| 68 | - int columnum = message->GetStartColumn(context).FromJust(); | ||
| 68 | + int columnum = message->GetStartColumn(); | ||
| 69 | 69 | ||
| 70 | 70 | Local<Value> argv[] = {script_resource_name, | |
| 71 | 71 | v8::Int32::New(isolate, linenum), | |
@@ -148,8 +148,8 @@ static std::string GetErrorSource(Isolate* isolate, | |||
| 148 | 148 | int script_start = (linenum - origin.LineOffset()) == 1 | |
| 149 | 149 | ? origin.ColumnOffset() | |
| 150 | 150 | : 0; | |
| 151 | - int start = message->GetStartColumn(context).FromMaybe(0); | ||
| 152 | - int end = message->GetEndColumn(context).FromMaybe(0); | ||
| 151 | + int start = message->GetStartColumn(); | ||
| 152 | + int end = message->GetEndColumn(); | ||
| 153 | 153 | if (start >= script_start) { | |
| 154 | 154 | CHECK_GE(end, start); | |
| 155 | 155 | start -= script_start; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments