blob: 85a08c7c8121dd575a75618c0aa931dd925013f5 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001// 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
5Object.defineProperty(String.prototype, "0", { __v_1: 1});
6Object.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
15function __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})();