diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-01-30 15:30:19 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-02-25 02:16:41 +0300 |
commit | 001dc16cf173a5dc52903f5178c00335eba9fd25 (patch) | |
tree | ae1bce6472b301d2b433c5ac67a51ef2109aa327 /src/node_errors.cc | |
parent | 43cc8e4b2e87ca48c981d1c66496885e57e44d68 (diff) |
src: use non-deprecated V8 module and script APIs
PR-URL: https://github.com/nodejs/node/pull/37330
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_errors.cc')
-rw-r--r-- | src/node_errors.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_errors.cc b/src/node_errors.cc index 3107f46b4dc..ab8b513ccee 100644 --- a/src/node_errors.cc +++ b/src/node_errors.cc @@ -98,8 +98,8 @@ static std::string GetErrorSource(Isolate* isolate, const char* filename_string = *filename; int linenum = message->GetLineNumber(context).FromJust(); - int script_start = (linenum - origin.ResourceLineOffset()->Value()) == 1 - ? origin.ResourceColumnOffset()->Value() + int script_start = (linenum - origin.LineOffset()) == 1 + ? origin.ColumnOffset() : 0; int start = message->GetStartColumn(context).FromMaybe(0); int end = message->GetEndColumn(context).FromMaybe(0); |