1 // Copyright 2015 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 Object.defineProperty(String.prototype, "0", { __v_1: 1}); 6 Object.defineProperty(String.prototype, "3", { __v_1: 1}); 7 8 (function () { 9 var s = new String(); 10 function set(object, index, value) { object[index] = value; } 11 set(s, 10, "value"); 12 set(s, 1073741823, "value"); 13 })(); 14 15 function __f_11() { 16 Object.preventExtensions(new String()); 17 } 18 __f_11(); 19 __f_11(); 20 21 (function() { 22 var i = 10; 23 var a = new String("foo"); 24 for (var j = 0; j < i; j++) { 25 a[j] = {}; 26 } 27 })(); 28