summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-top-level-await.js
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-04-19 18:41:33 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-04-25 23:46:08 +0800
commit3152b7c0d329893d2fe9f74ff4f334d182a10545 (patch)
treea79c4d4e578bf30020f19c6a71311ab748d34b52 /test/parallel/test-repl-top-level-await.js
parent94e0e2c787deade5702026b6d6eea8dcfee3b6a3 (diff)
downloadandroid-node-v8-3152b7c0d329893d2fe9f74ff4f334d182a10545.tar.gz
android-node-v8-3152b7c0d329893d2fe9f74ff4f334d182a10545.tar.bz2
android-node-v8-3152b7c0d329893d2fe9f74ff4f334d182a10545.zip
src: assign ERR_SCRIPT_EXECUTION_* codes in C++
Also modifies the error messages so they include more information and are more consistent. - The message of ERR_SCRIPT_EXECUTION_INTERRUPTED now mentions SIGINT and the trailing period is dropped for consistency. - Added ERR_SCRIPT_EXECUTION_TIMEOUT and include the timeout in the message. PR-URL: https://github.com/nodejs/node/pull/20147 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-repl-top-level-await.js')
-rw-r--r--test/parallel/test-repl-top-level-await.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-repl-top-level-await.js b/test/parallel/test-repl-top-level-await.js
index 91f5758c21..5a07f5ced1 100644
--- a/test/parallel/test-repl-top-level-await.js
+++ b/test/parallel/test-repl-top-level-await.js
@@ -161,7 +161,7 @@ async function ctrlCTest() {
]), [
'await timeout(100000)\r',
'Thrown: Error [ERR_SCRIPT_EXECUTION_INTERRUPTED]: ' +
- 'Script execution was interrupted by `SIGINT`.',
+ 'Script execution was interrupted by `SIGINT`',
PROMPT
]);
}