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