diff options
author | Rich Trott <rtrott@gmail.com> | 2017-10-17 16:59:30 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-11-11 17:41:11 -0800 |
commit | a645d45dd500f5b73efb1e940ffafadcf61f3628 (patch) | |
tree | edb61139369a2a493fd279416742181b5ed97d82 /test | |
parent | a5a122054f8bc35fbe837d9bc360bbfef76af7be (diff) | |
download | android-node-v8-a645d45dd500f5b73efb1e940ffafadcf61f3628.tar.gz android-node-v8-a645d45dd500f5b73efb1e940ffafadcf61f3628.tar.bz2 android-node-v8-a645d45dd500f5b73efb1e940ffafadcf61f3628.zip |
test: make test-tls-external-accessor agnostic
Remove reliance on V8-specific error messages in
test/parallel/test-tls-external-accessor.js.
Check that the error is a `TypeError`.
The test should now be successful without modification using ChakraCore.
PR-URL: https://github.com/nodejs/node/pull/16272
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-tls-external-accessor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-tls-external-accessor.js b/test/parallel/test-tls-external-accessor.js index 2d7b1f62b9..33d371923a 100644 --- a/test/parallel/test-tls-external-accessor.js +++ b/test/parallel/test-tls-external-accessor.js @@ -11,12 +11,12 @@ const tls = require('tls'); { const pctx = tls.createSecureContext().context; const cctx = Object.create(pctx); - assert.throws(() => cctx._external, /incompatible receiver/); + assert.throws(() => cctx._external, TypeError); pctx._external; } { const pctx = tls.createSecurePair().credentials.context; const cctx = Object.create(pctx); - assert.throws(() => cctx._external, /incompatible receiver/); + assert.throws(() => cctx._external, TypeError); pctx._external; } |