We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3047cf1 commit 7a8eddfCopy full SHA for 7a8eddf
test/parallel/test-crypto-random.js
@@ -32,4 +32,4 @@ const expectedErrorRegexp = /^TypeError: size must be a number >= 0$/;
32
// length exceeds max acceptable value"
33
assert.throws(function() {
34
crypto.randomBytes((-1 >>> 0) + 1);
35
-}, TypeError);
+}, /^TypeError: size must be a number >= 0$/);
0 commit comments