summaryrefslogtreecommitdiff
path: root/test/message
diff options
context:
space:
mode:
authorAnatoli Papirovski <apapirovski@mac.com>2017-11-25 11:58:53 -0500
committerAnatoli Papirovski <apapirovski@mac.com>2017-11-28 08:48:30 -0500
commitcbaf59c5b9a6063ee384b848aeb0aceb89082179 (patch)
treea2bff4b89d3f91f9c6a8f91d2b4e901f831ee3cb /test/message
parent1f5ee33dcb74202a0f29ed1ee2e941b36138f9b0 (diff)
downloadandroid-node-v8-cbaf59c5b9a6063ee384b848aeb0aceb89082179.tar.gz
android-node-v8-cbaf59c5b9a6063ee384b848aeb0aceb89082179.tar.bz2
android-node-v8-cbaf59c5b9a6063ee384b848aeb0aceb89082179.zip
process: slightly simplify next tick execution
Get rid of separate function to call callback from _tickCallback as it no longer yields worthwhile performance improvement. Move some code from nextTick & internalNextTick into TickObject constructor to minimize duplication. PR-URL: https://github.com/nodejs/node/pull/16888 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'test/message')
-rw-r--r--test/message/nexttick_throw.out1
-rw-r--r--test/message/stdin_messages.out7
-rw-r--r--test/message/unhandled_promise_trace_warnings.out2
3 files changed, 3 insertions, 7 deletions
diff --git a/test/message/nexttick_throw.out b/test/message/nexttick_throw.out
index 1b72ea2d3c..1c9eca8405 100644
--- a/test/message/nexttick_throw.out
+++ b/test/message/nexttick_throw.out
@@ -4,7 +4,6 @@
^
ReferenceError: undefined_reference_error_maker is not defined
at *test*message*nexttick_throw.js:*:*
- at _combinedTickCallback (internal/process/next_tick.js:*:*)
at process._tickCallback (internal/process/next_tick.js:*:*)
at Function.Module.runMain (module.js:*:*)
at startup (bootstrap_node.js:*:*)
diff --git a/test/message/stdin_messages.out b/test/message/stdin_messages.out
index 3145d50894..d934523a72 100644
--- a/test/message/stdin_messages.out
+++ b/test/message/stdin_messages.out
@@ -11,7 +11,6 @@ SyntaxError: Strict mode code may not include a with statement
at Socket.<anonymous> (bootstrap_node.js:*:*)
at Socket.emit (events.js:*:*)
at endReadableNT (_stream_readable.js:*:*)
- at _combinedTickCallback (internal/process/next_tick.js:*:*)
at process._tickCallback (internal/process/next_tick.js:*:*)
42
42
@@ -29,7 +28,7 @@ Error: hello
at Socket.<anonymous> (bootstrap_node.js:*:*)
at Socket.emit (events.js:*:*)
at endReadableNT (_stream_readable.js:*:*)
- at _combinedTickCallback (internal/process/next_tick.js:*:*)
+ at process._tickCallback (internal/process/next_tick.js:*:*)
[stdin]:1
throw new Error("hello")
^
@@ -44,7 +43,7 @@ Error: hello
at Socket.<anonymous> (bootstrap_node.js:*:*)
at Socket.emit (events.js:*:*)
at endReadableNT (_stream_readable.js:*:*)
- at _combinedTickCallback (internal/process/next_tick.js:*:*)
+ at process._tickCallback (internal/process/next_tick.js:*:*)
100
[stdin]:1
var x = 100; y = x;
@@ -60,7 +59,7 @@ ReferenceError: y is not defined
at Socket.<anonymous> (bootstrap_node.js:*:*)
at Socket.emit (events.js:*:*)
at endReadableNT (_stream_readable.js:*:*)
- at _combinedTickCallback (internal/process/next_tick.js:*:*)
+ at process._tickCallback (internal/process/next_tick.js:*:*)
[stdin]:1
var ______________________________________________; throw 10
diff --git a/test/message/unhandled_promise_trace_warnings.out b/test/message/unhandled_promise_trace_warnings.out
index 410b3bf4e3..c9c7a5c870 100644
--- a/test/message/unhandled_promise_trace_warnings.out
+++ b/test/message/unhandled_promise_trace_warnings.out
@@ -15,7 +15,6 @@
at *
at *
at *
- at *
(node:*) Error: This was rejected
at * (*test*message*unhandled_promise_trace_warnings.js:*)
at *
@@ -34,7 +33,6 @@
at *
at *
at *
- at *
(node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
at getAsynchronousRejectionWarningObject (internal/process/promises.js:*)
at rejectionHandled (internal/process/promises.js:*)