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

Side by Side Diff: test/mjsunit/harmony/reflect-get-prototype-of.js

Issue 1554523002: Revert of Use ES2015-style TypedArray prototype chain (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 12 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 | « test/mjsunit/get-prototype-of.js ('k') | test/mjsunit/harmony/sharedarraybuffer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010-2015 the V8 project authors. All rights reserved. 1 // Copyright 2010-2015 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 99
100 // Builtin constructors. 100 // Builtin constructors.
101 var functions = [ 101 var functions = [
102 Array, 102 Array,
103 ArrayBuffer, 103 ArrayBuffer,
104 Boolean, 104 Boolean,
105 // DataView, 105 // DataView,
106 Date, 106 Date,
107 Error, 107 Error,
108 // Float32Array, prototype is %TypedArray% 108 Float32Array,
109 // Float64Array, 109 Float64Array,
110 Function, 110 Function,
111 // Int16Array, 111 Int16Array,
112 // Int32Array, 112 Int32Array,
113 // Int8Array, 113 Int8Array,
114 Map, 114 Map,
115 Number, 115 Number,
116 Object, 116 Object,
117 // Promise, 117 // Promise,
118 RegExp, 118 RegExp,
119 Set, 119 Set,
120 String, 120 String,
121 // Symbol, not constructible 121 // Symbol, not constructible
122 // Uint16Array, 122 Uint16Array,
123 // Uint32Array, 123 Uint32Array,
124 // Uint8Array, 124 Uint8Array,
125 // Uint8ClampedArray, 125 Uint8ClampedArray,
126 WeakMap, 126 WeakMap,
127 WeakSet, 127 WeakSet,
128 ]; 128 ];
129 129
130 for (var f of functions) { 130 for (var f of functions) {
131 assertPrototypeOf(f, Function.prototype); 131 assertPrototypeOf(f, Function.prototype);
132 assertPrototypeOf(new f(), f.prototype); 132 assertPrototypeOf(new f(), f.prototype);
133 } 133 }
134 134
135 var p = new Promise(function() {}); 135 var p = new Promise(function() {});
136 assertPrototypeOf(p, Promise.prototype); 136 assertPrototypeOf(p, Promise.prototype);
137 137
138 var dv = new DataView(new ArrayBuffer()); 138 var dv = new DataView(new ArrayBuffer());
139 assertPrototypeOf(dv, DataView.prototype); 139 assertPrototypeOf(dv, DataView.prototype);
OLDNEW
« no previous file with comments | « test/mjsunit/get-prototype-of.js ('k') | test/mjsunit/harmony/sharedarraybuffer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698