OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 [1].toLocaleString(); | |
6 delete Number.prototype.toLocaleString; | |
7 [1].toLocaleString(); | |
8 var o = {}; | |
9 o.__proto__ = { toString: Array.prototype.toString }; | |
10 o.toString(); | |
11 Number.prototype.arrayToString = Array.prototype.toString; | |
12 (42).arrayToString(); | |
13 var a = [7]; | |
14 a.toLocaleString(); | |
OLD | NEW |