Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: test/mjsunit/es6/prototype-ordinary-objects.js

Issue 1051373002: ES6: Number and Boolean prototype should be ordinary objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add mozilla.status exceptions Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/v8natives.js ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
6 var funcs = [
7
8 // https://code.google.com/p/v8/issues/detail?id=4002
9 // Error,
10 // EvalError,
11 // RangeError,
12 // ReferenceError,
13 // SyntaxError,
14 // TypeError,
15 // URIError,
16
17 // https://code.google.com/p/v8/issues/detail?id=4003
18 // RegExp,
19
20 // https://code.google.com/p/v8/issues/detail?id=4004
21 // Date,
22
23 // https://code.google.com/p/v8/issues/detail?id=4006
24 // String,
25
26 ArrayBuffer,
27 Boolean,
28 DataView,
29 Float32Array,
30 Float64Array,
31 Int16Array,
32 Int32Array,
33 Int8Array,
34 Map,
35 Number,
36 Object,
37 Promise,
38 // Proxy,
39 Set,
40 Symbol,
41 Uint16Array,
42 Uint32Array,
43 Uint8Array,
44 Uint8ClampedArray,
45 WeakMap,
46 WeakSet,
47 ];
48
49 for (var fun of funcs) {
50 var p = fun.prototype;
51 assertEquals('[object Object]', Object.prototype.toString.call(p));
52 }
53
54
55 // These still have special prototypes for legacy reason.
56 var funcs = [
57 Array,
58 Function,
59 ];
60
61 for (var fun of funcs) {
62 var p = fun.prototype;
63 assertEquals('[object ' + fun.name + ']', Object.prototype.toString.call(p));
64 }
OLDNEW
« no previous file with comments | « src/v8natives.js ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698