GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: use context-free V8 message column getters · nodejs/node@c70ff44

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • inspector_agent.cc
    • node_errors.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/inspector_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector_agent.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ class NodeInspectorClient : public V8InspectorClient {
652652
ToInspectorString(isolate, message->Get())->string(),
653653
ToInspectorString(isolate, message->GetScriptResourceName())->string(),
654654
message->GetLineNumber(context).FromMaybe(0),
655-
message->GetStartColumn(context).FromMaybe(0),
655+
message->GetStartColumn(),
656656
client_->createStackTrace(stack_trace),
657657
script_id);
658658
}
Collapse file

‎src/node_errors.cc‎

Copy file name to clipboardExpand all lines: src/node_errors.cc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static std::string GetSourceMapErrorSource(Isolate* isolate,
6565
// the source texts.
6666
Local<Value> script_resource_name = message->GetScriptResourceName();
6767
int linenum = message->GetLineNumber(context).FromJust();
68-
int columnum = message->GetStartColumn(context).FromJust();
68+
int columnum = message->GetStartColumn();
6969

7070
Local<Value> argv[] = {script_resource_name,
7171
v8::Int32::New(isolate, linenum),
@@ -148,8 +148,8 @@ static std::string GetErrorSource(Isolate* isolate,
148148
int script_start = (linenum - origin.LineOffset()) == 1
149149
? origin.ColumnOffset()
150150
: 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();
153153
if (start >= script_start) {
154154
CHECK_GE(end, start);
155155
start -= script_start;

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.