8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 947ddec commit ea85768Copy full SHA for ea85768
common.gypi
@@ -35,7 +35,7 @@
35
36
# Reset this number to 0 on major V8 upgrades.
37
# Increment by one for each non-official patch applied to deps/v8.
38
- 'v8_embedder_string': '-node.30',
+ 'v8_embedder_string': '-node.31',
39
40
##### V8 defaults for Node.js #####
41
deps/v8/src/builtins/builtins-function.cc
@@ -93,17 +93,6 @@ MaybeHandle<Object> CreateDynamicFunction(Isolate* isolate,
93
function->shared().set_name_should_print_as_anonymous(true);
94
}
95
96
- // The spec says that we have to wrap code created via the function
97
- // constructor in e.g. 'function anonymous(' as above, including with extra
98
- // line breaks. Ths is confusing when reporting stack traces from the eval'd
99
- // code as the line number of the error is always reported with 2 extra line
100
- // breaks e.g. line 1 is reported as line 3. We fix this up here by setting
101
- // line_offset which is read by stack trace code.
102
- Handle<Script> script(Script::cast(function->shared().script()), isolate);
103
- if (script->line_offset() == 0) {
104
- script->set_line_offset(-2);
105
- }
106
-
107
// If new.target is equal to target then the function created
108
// is already correctly setup and nothing else should be done
109
// here. But if new.target is not equal to target then we are
deps/v8/test/cctest/test-api-stack-traces.cc
@@ -250,31 +250,31 @@ static void AnalyzeStackInNativeCode(
250
v8::Local<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(
251
args.GetIsolate(), 5, v8::StackTrace::kOverview);
252
CHECK_EQ(3, stackTrace->GetFrameCount());
253
- checkStackFrame(nullptr, "function.name", 1, 1, true, false,
+ checkStackFrame(nullptr, "function.name", 3, 1, true, false,
254
stackTrace->GetFrame(isolate, 0));
255
} else if (testGroup == kDisplayName) {
256
257
258
259
- checkStackFrame(nullptr, "function.displayName", 1, 1, true, false,
+ checkStackFrame(nullptr, "function.displayName", 3, 1, true, false,
260
261
} else if (testGroup == kFunctionNameAndDisplayName) {
262
263
264
265
266
267
} else if (testGroup == kDisplayNameIsNotString) {
268
269
270
271
272
273
} else if (testGroup == kFunctionNameIsNotString) {
274
275
276
277
- checkStackFrame(nullptr, "", 1, 1, true, false,
+ checkStackFrame(nullptr, "", 3, 1, true, false,
278
279
280
deps/v8/test/debugger/debugger.status
@@ -11,9 +11,6 @@
11
# not work, but we expect it to not crash.
12
'debug/debug-step-turbofan': [PASS, FAIL],
13
14
- # BUG (v8:9721)
15
- 'debug/es6/generators-relocation': [FAIL],
16
17
# Issue 3641: The new 'then' semantics suppress some exceptions.
18
# These tests may be changed or removed when 'chain' is deprecated.
19
'debug/es6/debug-promises/reject-with-throw-in-reject': [FAIL],
deps/v8/test/inspector/runtime/evaluate-new-function-error-expected.txt
@@ -6,19 +6,19 @@ Tests that Runtime.evaluate has the correct error line number for 'new Function(
6
columnNumber : 3
7
exception : {
8
className : TypeError
9
- description : TypeError: 0 is not a function at eval (eval at <anonymous> (:1:1), <anonymous>:1:4) at <anonymous>:1:22
+ description : TypeError: 0 is not a function at eval (eval at <anonymous> (:1:1), <anonymous>:3:4) at <anonymous>:1:22
10
objectId : <objectId>
subtype : error
type : object
exceptionId : <exceptionId>
- lineNumber : 0
+ lineNumber : 2
scriptId : <scriptId>
text : Uncaught
result : {
20
21
22
23
24
deps/v8/test/mjsunit/regress/regress-crbug-109362.js
lib/assert.js
@@ -277,7 +277,7 @@ function getErrMessage(message, fn) {
const call = err.stack[0];
const filename = call.getFileName();
- let line = call.getLineNumber() - 1;
+ const line = call.getLineNumber() - 1;
281
let column = call.getColumnNumber() - 1;
282
let identifier;
283
let code;
@@ -297,9 +297,6 @@ function getErrMessage(message, fn) {
297
return message;
298
299
code = String(fn);
300
- // For functions created with the Function constructor, V8 does not count
301
- // the lines containing the function header.
302
- line += 2;
303
identifier = `${code}${line}${column}`;
304
305