We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a53783 commit 2e2e802Copy full SHA for 2e2e802
test/parallel/test-buffer-slow.js
@@ -34,7 +34,9 @@ try {
34
assert.strictEqual(
35
SlowBuffer(buffer.kMaxLength).length, buffer.kMaxLength);
36
} catch (e) {
37
- assert.strictEqual(e.message, 'Array buffer allocation failed');
+ // Don't match on message as it is from the JavaScript engine. V8 and
38
+ // ChakraCore provide different messages.
39
+ assert.strictEqual(e.name, 'RangeError');
40
}
41
42
// should work with number-coercible values
0 commit comments