We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2039435 commit 3148bc7Copy full SHA for 3148bc7
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