diff options
author | James M Snell <jasnell@gmail.com> | 2017-04-20 15:23:05 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-04-27 15:44:08 -0700 |
commit | f0b702555aacc814da28a018277d56e5f79f10d1 (patch) | |
tree | b40b44d7dacf9d458a0c74cda97b7863103a4640 /test/parallel/test-internal-errors.js | |
parent | 427125491f3516fc80030f16e1536c3fa30ac929 (diff) | |
download | android-node-v8-f0b702555aacc814da28a018277d56e5f79f10d1.tar.gz android-node-v8-f0b702555aacc814da28a018277d56e5f79f10d1.tar.bz2 android-node-v8-f0b702555aacc814da28a018277d56e5f79f10d1.zip |
errors: use lazy assert to avoid issues on startup
Use of assert must be lazy to allow errors to be used early
before the process is completely set up
PR-URL: https://github.com/nodejs/node/pull/11300
Ref: https://github.com/nodejs/node/issues/11273
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/parallel/test-internal-errors.js')
-rw-r--r-- | test/parallel/test-internal-errors.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/parallel/test-internal-errors.js b/test/parallel/test-internal-errors.js index dd4f02c1f7..4157ca0008 100644 --- a/test/parallel/test-internal-errors.js +++ b/test/parallel/test-internal-errors.js @@ -125,12 +125,6 @@ assert.throws(() => { message: /^Error for testing 2/ })); }, /AssertionError: .+ does not match \S/); -assert.doesNotThrow(() => errors.E('TEST_ERROR_USED_SYMBOL')); -assert.throws( - () => errors.E('TEST_ERROR_USED_SYMBOL'), - /^AssertionError: Error symbol: TEST_ERROR_USED_SYMBOL was already used\.$/ -); - // // Test ERR_INVALID_ARG_TYPE assert.strictEqual(errors.message('ERR_INVALID_ARG_TYPE', ['a', 'b']), 'The "a" argument must be of type b'); |