| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9e68947 commit 7eba62e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,12 +11,12 @@ const tls = require('tls'); | |||
| 11 | 11 | { | |
| 12 | 12 | const pctx = tls.createSecureContext().context; | |
| 13 | 13 | const cctx = Object.create(pctx); | |
| 14 | - assert.throws(() => cctx._external, /incompatible receiver/); | ||
| 14 | + assert.throws(() => cctx._external, TypeError); | ||
| 15 | 15 | pctx._external; | |
| 16 | 16 | } | |
| 17 | 17 | { | |
| 18 | 18 | const pctx = tls.createSecurePair().credentials.context; | |
| 19 | 19 | const cctx = Object.create(pctx); | |
| 20 | - assert.throws(() => cctx._external, /incompatible receiver/); | ||
| 20 | + assert.throws(() => cctx._external, TypeError); | ||
| 21 | 21 | pctx._external; | |
| 22 | 22 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments