File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 35
35
36
36
# Reset this number to 0 on major V8 upgrades.
37
37
# Increment by one for each non-official patch applied to deps/v8.
38
- 'v8_embedder_string' : '-node.6 ' ,
38
+ 'v8_embedder_string' : '-node.7 ' ,
39
39
40
40
##### V8 defaults for Node.js #####
41
41
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ function getErrMessage(message, fn) {
278
278
const call = err . stack [ 0 ] ;
279
279
280
280
const filename = call . getFileName ( ) ;
281
- let line = call . getLineNumber ( ) - 1 ;
281
+ const line = call . getLineNumber ( ) - 1 ;
282
282
let column = call . getColumnNumber ( ) - 1 ;
283
283
let identifier ;
284
284
let code ;
@@ -298,9 +298,6 @@ function getErrMessage(message, fn) {
298
298
return message ;
299
299
}
300
300
code = String ( fn ) ;
301
- // For functions created with the Function constructor, V8 does not count
302
- // the lines containing the function header.
303
- line += 2 ;
304
301
identifier = `${ code } ${ line } ${ column } ` ;
305
302
}
306
303
You can’t perform that action at this time.
0 commit comments