Skip to content

Commit 23eb7f5

Browse files
committed
f
1 parent 30d5687 commit 23eb7f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-crypto-subtle-zero-length.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ const crypto = require('crypto').webcrypto;
3434
}, k, e);
3535
assert(v instanceof ArrayBuffer);
3636
assert.strictEqual(v.byteLength, 0);
37-
})().then(common.mustCall());
38-
39-
process.on('uncaughtException', e => assert.ifError(e));
37+
})().then(common.mustCall()).catch(e => {
38+
assert.ifError(e);
39+
});

0 commit comments

Comments
 (0)