Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: fix unittest for Chakra engine
Browse files Browse the repository at this point in the history
PR-URL: #35
Reviewed-By: Jianchun Xu <Jianchun.Xu@microsoft.com>
  • Loading branch information
agarwal-sandeep committed Mar 9, 2016
1 parent d875ac9 commit adfadcc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/parallel/test-tls-external-accessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ const tls = require('tls');
{
const pctx = tls.createSecureContext().context;
const cctx = Object.create(pctx);
assert.throws(() => cctx._external, /incompatible receiver/);
assert.throws(() => cctx._external, common.engineSpecificMessage({
v8 : /incompatible receiver/,
chakracore : /Illegal invocation/}));
pctx._external;
}
{
const pctx = tls.createSecurePair().credentials.context;
const cctx = Object.create(pctx);
assert.throws(() => cctx._external, /incompatible receiver/);
assert.throws(() => cctx._external, common.engineSpecificMessage({
v8 : /incompatible receiver/,
chakracore : /Illegal invocation/}));
pctx._external;
}

0 comments on commit adfadcc

Please sign in to comment.