diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-10-18 15:03:02 -0700 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-10-18 17:01:41 -0700 |
commit | 3d1b3df9486c0e7708065257f7311902f6b7b366 (patch) | |
tree | cb051bdeaead11e06dcd97725783e0f113afb1bf /deps/v8/test/mjsunit/string-oom-replace-global-regexp-with-string.js | |
parent | e2cddbb8ccdb7b3c4a40c8acc630f68703bc77b5 (diff) | |
download | node-new-3d1b3df9486c0e7708065257f7311902f6b7b366.tar.gz |
deps: update V8 to 6.2.414.32
PR-URL: https://github.com/nodejs/node/pull/15362
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/test/mjsunit/string-oom-replace-global-regexp-with-string.js')
-rw-r--r-- | deps/v8/test/mjsunit/string-oom-replace-global-regexp-with-string.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/deps/v8/test/mjsunit/string-oom-replace-global-regexp-with-string.js b/deps/v8/test/mjsunit/string-oom-replace-global-regexp-with-string.js index 2de01109eb..5053d81e8c 100644 --- a/deps/v8/test/mjsunit/string-oom-replace-global-regexp-with-string.js +++ b/deps/v8/test/mjsunit/string-oom-replace-global-regexp-with-string.js @@ -2,12 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// Flags: --allow-natives-syntax - -var a = 'a'; -for (var i = 0; i < 5; i++) a += a; -var b = 'b'; -for (var i = 0; i < 23; i++) b += b; +var a = 'a'.repeat(32); +var b = 'b'.repeat(%StringMaxLength() / 32 + 1); function replace1() { a.replace(/./g, b); @@ -16,8 +14,7 @@ function replace1() { assertThrows(replace1, RangeError); -var a = 'a'; -for (var i = 0; i < 16; i++) a += a; +var a = 'a'.repeat(Math.sqrt(%StringMaxLength()) + 1); function replace2() { a.replace(/a/g, a); |