util: mark proxied objects as such when inspecting them #78850
Annotations
6 errors and 2 notices
|
test-linux (ubuntu-24.04-arm)
Process completed with exit code 2.
|
|
test-linux (ubuntu-24.04-arm):
test/parallel/test-repl.js#L92
--- stderr ---
------------
out: ""
in: ""
------------
out: "message"
in: "'Read, Eval, Print Loop'"
------------
out: "invoke_me(987)"
in: "'invoked 987'"
------------
out: "a = 12345"
in: "12345"
------------
out: "{a:1}"
in: "{ a: 1 }"
------------
out: "throw new Error('test error');"
in: "Uncaught Error: test error"
------------
out: "throw { foo: 'bar' };"
in: "Uncaught { foo: 'bar' }"
------------
out: "function test_func() {"
in: "| "
------------
out: ".break"
in: ""
------------
out: "eval(\"function test_func() {\")"
in: "Uncaught SyntaxError: Unexpected end of input"
------------
out: "`io.js"
in: "| "
------------
out: ".break"
in: ""
------------
out: "`io.js ${\"1.0\""
in: "| "
------------
out: "+ \".2\"}`"
in: "'io.js 1.0.2'"
------------
out: "`io.js ${"
in: "| "
------------
out: "\"1.0\" + \".2\"}`"
in: "'io.js 1.0.2'"
------------
out: "(\"a\""
in: "| "
------------
out: ".charAt(0))"
in: "'a'"
------------
out: ".1234"
in: "0.1234"
------------
out: ".1+.1"
in: "0.2"
------------
out: "JSON.parse('{\"valid\": \"json\"}');"
in: "{ valid: 'json' }"
------------
out: "JSON.parse('{invalid: \\'json\\'}');"
in: "Uncaught:"
in: "SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)"
------------
out: "JSON.parse('066');"
in: "Uncaught SyntaxError: Unexpected number in JSON at position 1 (line 1 column 2)"
------------
out: "JSON.parse('{');"
in: "Uncaught:"
in: "SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)"
------------
out: "/(/;"
in: "/(/;"
in: "^^^"
in: ""
in: "Uncaught SyntaxError: Invalid regular expression: /(/: Unterminated group"
------------
out: "new RegExp(\"foo\", \"wrong modifier\");"
in: "Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'wrong modifier'"
------------
out: "(function() { \"use strict\"; return 0755; })()"
in: "(function() { \"use strict\"; return 0755; })()"
in: " ^^^^"
in: ""
in: "Uncaught SyntaxError: Octal literals are not allowed in strict mode."
------------
out: "(function(a, a, b) { \"use strict\"; return a + b + c; })()"
in: "(function(a, a, b) { \"use strict\"; return a + b + c; })()"
in: " ^"
in: ""
in: "Uncaught SyntaxError: Duplicate parameter name not allowed in this context"
------------
out: "(function() { \"use strict\"; with (this) {} })()"
in: "(function() { \"use strict\"; with (this) {} })()"
in: " ^^^^"
in: ""
in: "Uncaught SyntaxError: Strict mode code may not include a with statement"
------------
out: "(function() { \"use strict\"; var x; delete x; })()"
in: "(function() { \"use strict\"; var x; delete x; })()"
in: " ^"
in: ""
in: "Uncaught SyntaxError: Delete of an unqualified identifier in strict mode."
------------
out: "(function() { \"use strict\"; eval = 17; })()"
in: "(function() { \"use strict\"; eval = 17; })()"
in: " ^^^^"
in: ""
in: "Uncaught SyntaxError: Unexpected eval or arguments in strict mode"
------------
out: "(function() { \"use strict\"; if (true) function f() { } })()"
in: "(function() { \"use strict\"; if (true) function f() { } })()"
in: " ^^^^^^^^"
in: ""
in: "Uncaught:"
in: "SyntaxError: In strict mode code, functions can only be declared at top level or inside a block."
------------
out: "function blah() { return 1; }"
in: "undefined"
------------
out: "blah()"
in: "1"
------------
out: "var I = [1,2,3,function() {}]; I.pop()"
in: "[Function (anonymous)]"
------------
out: "{}),({}"
in: "| "
------------
out: "}"
in: "{}),({}"
in: " ^"
in: ""
in: "Uncaught SyntaxError: Unexpected token ')'"
------------
out: "{ a: "
in: "| "
------------
out: "1 }"
in: "{ a: 1 }"
------------
out: "{ \"a\": "
in: "| "
------------
out: "1 }"
in: "{ a: 1 }"
------------
out: "class Foo { #private = true "
in: "| "
------------
out: "num = 123456789n"
in: "| "
------------
out: "static foo = \"bar\" }"
in: "undefined"
------------
out: "(fun
|
|
test-linux (ubuntu-24.04-arm):
test/parallel/test-assert-deep.js#L1068
--- stdout ---
Test failure: 'Check proxies'
Location: test/parallel/test-assert-deep.js:1063:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
message: 'Expected values to be strictly deep-equal:\n' +
'+ actual - expected\n' +
'\n' +
+ '+ Proxy([\n' +
+ '- [\n' +
- ' [\n' +
' 1,\n' +
' 2,\n' +
+ '+ ])\n' +
'- 3\n' +
+ '- ]\n'
- ' ]\n'
}
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-assert-deep.js:1068:10)
at Test.runInAsyncScope (node:async_hooks:213:14)
at Test.run (node:internal/test_runner/test:1095:25)
at Test.processPendingSubtests (node:internal/test_runner/test:777:18)
at Test.postRun (node:internal/test_runner/test:1224:19)
at Test.run (node:internal/test_runner/test:1152:12)
at async Test.processPendingSubtests (node:internal/test_runner/test:777:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: [AssertionError],
expected: [Object],
operator: 'throws',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-assert-deep.js
|
|
test-linux (ubuntu-24.04)
Process completed with exit code 2.
|
|
test-linux (ubuntu-24.04):
test/parallel/test-repl.js#L92
--- stderr ---
------------
out: ""
in: ""
------------
out: "message"
in: "'Read, Eval, Print Loop'"
------------
out: "invoke_me(987)"
in: "'invoked 987'"
------------
out: "a = 12345"
in: "12345"
------------
out: "{a:1}"
in: "{ a: 1 }"
------------
out: "throw new Error('test error');"
in: "Uncaught Error: test error"
------------
out: "throw { foo: 'bar' };"
in: "Uncaught { foo: 'bar' }"
------------
out: "function test_func() {"
in: "| "
------------
out: ".break"
in: ""
------------
out: "eval(\"function test_func() {\")"
in: "Uncaught SyntaxError: Unexpected end of input"
------------
out: "`io.js"
in: "| "
------------
out: ".break"
in: ""
------------
out: "`io.js ${\"1.0\""
in: "| "
------------
out: "+ \".2\"}`"
in: "'io.js 1.0.2'"
------------
out: "`io.js ${"
in: "| "
------------
out: "\"1.0\" + \".2\"}`"
in: "'io.js 1.0.2'"
------------
out: "(\"a\""
in: "| "
------------
out: ".charAt(0))"
in: "'a'"
------------
out: ".1234"
in: "0.1234"
------------
out: ".1+.1"
in: "0.2"
------------
out: "JSON.parse('{\"valid\": \"json\"}');"
in: "{ valid: 'json' }"
------------
out: "JSON.parse('{invalid: \\'json\\'}');"
in: "Uncaught:"
in: "SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)"
------------
out: "JSON.parse('066');"
in: "Uncaught SyntaxError: Unexpected number in JSON at position 1 (line 1 column 2)"
------------
out: "JSON.parse('{');"
in: "Uncaught:"
in: "SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)"
------------
out: "/(/;"
in: "/(/;"
in: "^^^"
in: ""
in: "Uncaught SyntaxError: Invalid regular expression: /(/: Unterminated group"
------------
out: "new RegExp(\"foo\", \"wrong modifier\");"
in: "Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'wrong modifier'"
------------
out: "(function() { \"use strict\"; return 0755; })()"
in: "(function() { \"use strict\"; return 0755; })()"
in: " ^^^^"
in: ""
in: "Uncaught SyntaxError: Octal literals are not allowed in strict mode."
------------
out: "(function(a, a, b) { \"use strict\"; return a + b + c; })()"
in: "(function(a, a, b) { \"use strict\"; return a + b + c; })()"
in: " ^"
in: ""
in: "Uncaught SyntaxError: Duplicate parameter name not allowed in this context"
------------
out: "(function() { \"use strict\"; with (this) {} })()"
in: "(function() { \"use strict\"; with (this) {} })()"
in: " ^^^^"
in: ""
in: "Uncaught SyntaxError: Strict mode code may not include a with statement"
------------
out: "(function() { \"use strict\"; var x; delete x; })()"
in: "(function() { \"use strict\"; var x; delete x; })()"
in: " ^"
in: ""
in: "Uncaught SyntaxError: Delete of an unqualified identifier in strict mode."
------------
out: "(function() { \"use strict\"; eval = 17; })()"
in: "(function() { \"use strict\"; eval = 17; })()"
in: " ^^^^"
in: ""
in: "Uncaught SyntaxError: Unexpected eval or arguments in strict mode"
------------
out: "(function() { \"use strict\"; if (true) function f() { } })()"
in: "(function() { \"use strict\"; if (true) function f() { } })()"
in: " ^^^^^^^^"
in: ""
in: "Uncaught:"
in: "SyntaxError: In strict mode code, functions can only be declared at top level or inside a block."
------------
out: "function blah() { return 1; }"
in: "undefined"
------------
out: "blah()"
in: "1"
------------
out: "var I = [1,2,3,function() {}]; I.pop()"
in: "[Function (anonymous)]"
------------
out: "{}),({}"
in: "| "
------------
out: "}"
in: "{}),({}"
in: " ^"
in: ""
in: "Uncaught SyntaxError: Unexpected token ')'"
------------
out: "{ a: "
in: "| "
------------
out: "1 }"
in: "{ a: 1 }"
------------
out: "{ \"a\": "
in: "| "
------------
out: "1 }"
in: "{ a: 1 }"
------------
out: "class Foo { #private = true "
in: "| "
------------
out: "num = 123456789n"
in: "| "
------------
out: "static foo = \"bar\" }"
in: "undefined"
------------
out: "(fun
|
|
test-linux (ubuntu-24.04):
test/parallel/test-assert-deep.js#L1068
--- stdout ---
Test failure: 'Check proxies'
Location: test/parallel/test-assert-deep.js:1063:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
message: 'Expected values to be strictly deep-equal:\n' +
'+ actual - expected\n' +
'\n' +
+ '+ Proxy([\n' +
+ '- [\n' +
- ' [\n' +
' 1,\n' +
' 2,\n' +
+ '+ ])\n' +
'- 3\n' +
+ '- ]\n'
- ' ]\n'
}
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-assert-deep.js:1068:10)
at Test.runInAsyncScope (node:async_hooks:213:14)
at Test.run (node:internal/test_runner/test:1095:25)
at Test.processPendingSubtests (node:internal/test_runner/test:777:18)
at Test.postRun (node:internal/test_runner/test:1224:19)
at Test.run (node:internal/test_runner/test:1152:12)
at async Test.processPendingSubtests (node:internal/test_runner/test:777:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: [AssertionError],
expected: [Object],
operator: 'throws',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-assert-deep.js
|
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|