summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js')
-rw-r--r--tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js b/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js
index 27ccf90db..a679f26bb 100644
--- a/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js
+++ b/tests/node_compat/test/parallel/test-buffer-no-negative-allocation.js
@@ -12,9 +12,8 @@ const assert = require('assert');
const { SlowBuffer } = require('buffer');
const msg = {
- code: 'ERR_INVALID_ARG_VALUE',
+ code: 'ERR_OUT_OF_RANGE',
name: 'RangeError',
- message: /^The argument 'size' is invalid\. Received [^"]*$/
};
// Test that negative Buffer length inputs throw errors.