diff options
author | Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> | 2022-01-24 19:39:16 +0330 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2022-02-05 08:36:48 -0800 |
commit | 8c4b8b201ada6b76d5306c9c7f352e45087fb4a9 (patch) | |
tree | 0f3159d3dd6aad1159292956f1fe1550fb41d06a /test/parallel/test-timers-throw-when-cb-not-function.js | |
parent | 217acb9036f39ea6088cee75f70f11602997e15f (diff) | |
download | node-new-8c4b8b201ada6b76d5306c9c7f352e45087fb4a9.tar.gz |
lib: replace validator and error
Refs: https://github.com/nodejs/node/pull/41660
PR-URL: https://github.com/nodejs/node/pull/41678
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-timers-throw-when-cb-not-function.js')
-rw-r--r-- | test/parallel/test-timers-throw-when-cb-not-function.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-timers-throw-when-cb-not-function.js b/test/parallel/test-timers-throw-when-cb-not-function.js index 75f49b0f3b..f7432af233 100644 --- a/test/parallel/test-timers-throw-when-cb-not-function.js +++ b/test/parallel/test-timers-throw-when-cb-not-function.js @@ -9,7 +9,7 @@ function doSetTimeout(callback, after) { } const errMessage = { - code: 'ERR_INVALID_CALLBACK', + code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' }; |