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

Side by Side Diff: test/mjsunit/harmony/array-from.js

Issue 851163007: Implement IsConstructor() abstract operation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: All raw pointers converted to handles Created 5 years, 11 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/runtime/runtime-function.cc ('k') | test/mjsunit/harmony/array-of.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 // Flags: --harmony-arrays --harmony-generators 5 // Flags: --harmony-arrays --harmony-generators
6 (function() { 6 (function() {
7 7
8 assertEquals(1, Array.from.length); 8 assertEquals(1, Array.from.length);
9 9
10 function assertArrayLikeEquals(value, expected, type) { 10 function assertArrayLikeEquals(value, expected, type) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 function Other() {} 111 function Other() {}
112 112
113 var boundFn = (function() {}).bind(Array, 27); 113 var boundFn = (function() {}).bind(Array, 27);
114 114
115 testArrayFrom(Array, Array); 115 testArrayFrom(Array, Array);
116 testArrayFrom(null, Array); 116 testArrayFrom(null, Array);
117 testArrayFrom({}, Array); 117 testArrayFrom({}, Array);
118 testArrayFrom(Object, Object); 118 testArrayFrom(Object, Object);
119 testArrayFrom(Other, Other); 119 testArrayFrom(Other, Other);
120 testArrayFrom(Math.cos, Array); 120 testArrayFrom(Math.cos, Array);
121 testArrayFrom(boundFn, Array); 121 testArrayFrom(Math.cos.bind(Math), Array);
122 testArrayFrom(boundFn, boundFn);
122 123
123 })(); 124 })();
OLDNEW
« no previous file with comments | « src/runtime/runtime-function.cc ('k') | test/mjsunit/harmony/array-of.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698