aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-buffer-constants.js')
-rw-r--r--test/parallel/test-buffer-constants.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-buffer-constants.js b/test/parallel/test-buffer-constants.js
index dbb6186b6d..f6f0dbddc3 100644
--- a/test/parallel/test-buffer-constants.js
+++ b/test/parallel/test-buffer-constants.js
@@ -11,7 +11,7 @@ assert(MAX_STRING_LENGTH <= MAX_LENGTH);
assert.throws(() => ' '.repeat(MAX_STRING_LENGTH + 1),
/^RangeError: Invalid string length$/);
-' '.repeat(MAX_STRING_LENGTH);
+' '.repeat(MAX_STRING_LENGTH); // Should not throw.
// Legacy values match:
assert.strictEqual(kMaxLength, MAX_LENGTH);