mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
e7af9830e9
In order to better match the browser behaviour, run nextTicks (and subsequently the microtask queue) after each individual Timer and Immediate, rather than after the whole list is processed. The current behaviour is somewhat of a performance micro-optimization and also partly dictated by how timer handles were implemented. PR-URL: https://github.com/nodejs/node/pull/22842 Fixes: https://github.com/nodejs/node/issues/22257 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
75 lines
2.4 KiB
Plaintext
75 lines
2.4 KiB
Plaintext
[stdin]
|
|
[stdin]:1
|
|
with(this){__filename}
|
|
^^^^
|
|
SyntaxError: Strict mode code may not include a with statement
|
|
at new Script (vm.js:*)
|
|
at createScript (vm.js:*)
|
|
at Object.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([stdin]-wrapper:*:*)
|
|
at Module._compile (internal/modules/cjs/loader.js:*:*)
|
|
at evalScript (internal/bootstrap/node.js:*:*)
|
|
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
|
|
at Socket.emit (events.js:*:*)
|
|
at endReadableNT (_stream_readable.js:*:*)
|
|
at process.internalTickCallback (internal/process/next_tick.js:*:*)
|
|
42
|
|
42
|
|
[stdin]:1
|
|
throw new Error("hello")
|
|
^
|
|
|
|
Error: hello
|
|
at [stdin]:1:7
|
|
at Script.runInThisContext (vm.js:*)
|
|
at Object.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([stdin]-wrapper:*:*)
|
|
at Module._compile (internal/modules/cjs/loader.js:*:*)
|
|
at evalScript (internal/bootstrap/node.js:*:*)
|
|
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
|
|
at Socket.emit (events.js:*:*)
|
|
at endReadableNT (_stream_readable.js:*:*)
|
|
at process.internalTickCallback (internal/process/next_tick.js:*:*)
|
|
[stdin]:1
|
|
throw new Error("hello")
|
|
^
|
|
|
|
Error: hello
|
|
at [stdin]:1:*
|
|
at Script.runInThisContext (vm.js:*)
|
|
at Object.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([stdin]-wrapper:*:*)
|
|
at Module._compile (internal/modules/cjs/loader.js:*:*)
|
|
at evalScript (internal/bootstrap/node.js:*:*)
|
|
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
|
|
at Socket.emit (events.js:*:*)
|
|
at endReadableNT (_stream_readable.js:*:*)
|
|
at process.internalTickCallback (internal/process/next_tick.js:*:*)
|
|
100
|
|
[stdin]:1
|
|
var x = 100; y = x;
|
|
^
|
|
|
|
ReferenceError: y is not defined
|
|
at [stdin]:1:16
|
|
at Script.runInThisContext (vm.js:*)
|
|
at Object.runInThisContext (vm.js:*)
|
|
at Object.<anonymous> ([stdin]-wrapper:*:*)
|
|
at Module._compile (internal/modules/cjs/loader.js:*:*)
|
|
at evalScript (internal/bootstrap/node.js:*:*)
|
|
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
|
|
at Socket.emit (events.js:*:*)
|
|
at endReadableNT (_stream_readable.js:*:*)
|
|
at process.internalTickCallback (internal/process/next_tick.js:*:*)
|
|
|
|
[stdin]:1
|
|
var ______________________________________________; throw 10
|
|
^
|
|
10
|
|
|
|
[stdin]:1
|
|
var ______________________________________________; throw 10
|
|
^
|
|
10
|
|
done
|