511edabed2
length == String::kMaxLength is fine and should not bail out. BUG=chromium:357052 LOG=n R=yangguo@chromium.org Review URL: https://codereview.chromium.org/222113002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20433 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
12 lines
292 B
JavaScript
12 lines
292 B
JavaScript
// Copyright 2014 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
function f() {
|
|
var str = "";
|
|
for (var i = 0; i < 30; i++) {
|
|
str += "abcdefgh12345678" + str;
|
|
}
|
|
}
|
|
assertThrows(f);
|