OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 var funcs = [ | 6 var funcs = [ |
7 | 7 |
8 // https://code.google.com/p/v8/issues/detail?id=4002 | 8 // https://code.google.com/p/v8/issues/detail?id=4002 |
9 // Error, | 9 // Error, |
10 // EvalError, | 10 // EvalError, |
11 // RangeError, | 11 // RangeError, |
12 // ReferenceError, | 12 // ReferenceError, |
13 // SyntaxError, | 13 // SyntaxError, |
14 // TypeError, | 14 // TypeError, |
15 // URIError, | 15 // URIError, |
16 | 16 |
17 // https://code.google.com/p/v8/issues/detail?id=4003 | 17 // https://code.google.com/p/v8/issues/detail?id=4003 |
18 // RegExp, | 18 // RegExp, |
19 | 19 |
20 // https://code.google.com/p/v8/issues/detail?id=4004 | 20 // https://code.google.com/p/v8/issues/detail?id=4004 |
21 // Date, | 21 // Date, |
22 | 22 |
23 // https://code.google.com/p/v8/issues/detail?id=4006 | 23 // https://code.google.com/p/v8/issues/detail?id=4006 |
24 // String, | 24 // String, |
25 | 25 |
| 26 // Boolean, |
| 27 // Number, |
| 28 // https://code.google.com/p/v8/issues/detail?id=4001 |
| 29 |
26 ArrayBuffer, | 30 ArrayBuffer, |
27 Boolean, | |
28 DataView, | 31 DataView, |
29 Float32Array, | 32 Float32Array, |
30 Float64Array, | 33 Float64Array, |
31 Int16Array, | 34 Int16Array, |
32 Int32Array, | 35 Int32Array, |
33 Int8Array, | 36 Int8Array, |
34 Map, | 37 Map, |
35 Number, | |
36 Object, | 38 Object, |
37 Promise, | 39 Promise, |
38 // Proxy, | 40 // Proxy, |
39 Set, | 41 Set, |
40 Symbol, | 42 Symbol, |
41 Uint16Array, | 43 Uint16Array, |
42 Uint32Array, | 44 Uint32Array, |
43 Uint8Array, | 45 Uint8Array, |
44 Uint8ClampedArray, | 46 Uint8ClampedArray, |
45 WeakMap, | 47 WeakMap, |
(...skipping 12 matching lines...) Expand all Loading... |
58 // These still have special prototypes for legacy reason. | 60 // These still have special prototypes for legacy reason. |
59 var funcs = [ | 61 var funcs = [ |
60 Array, | 62 Array, |
61 Function, | 63 Function, |
62 ]; | 64 ]; |
63 | 65 |
64 for (var fun of funcs) { | 66 for (var fun of funcs) { |
65 var p = fun.prototype; | 67 var p = fun.prototype; |
66 assertEquals(`[object ${fun.name}]`, Object.prototype.toString.call(p)); | 68 assertEquals(`[object ${fun.name}]`, Object.prototype.toString.call(p)); |
67 } | 69 } |
OLD | NEW |