OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 var foo = "01234567"; |
| 6 |
| 7 foo += foo; |
| 8 foo += foo; |
| 9 foo += foo; |
| 10 foo += foo; |
| 11 foo += foo; // foo.length = 256; |
| 12 |
| 13 // Create an adaptor frame, and take the StringReplaceOneCharWithString runtime |
| 14 // fast path. This crashed originally since TailCallRuntime could not handle |
| 15 // adaptor frames. |
| 16 var bar = foo.replace('x', 'y', 'z'); |
OLD | NEW |