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

Side by Side Diff: test/mjsunit/es6/mirror-collections.js

Issue 427723002: Enable ES6 Map and Set by default (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove old test, fix BUILD.gn Created 6 years, 4 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 | Annotate | Revision Log
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: --expose-debug-as debug --expose-gc --harmony-collections 5 // Flags: --expose-debug-as debug --expose-gc
6 6
7 function testMapMirror(mirror) { 7 function testMapMirror(mirror) {
8 // Create JSON representation. 8 // Create JSON representation.
9 var serializer = debug.MakeMirrorSerializer(); 9 var serializer = debug.MakeMirrorSerializer();
10 var json = JSON.stringify(serializer.serializeValue(mirror)); 10 var json = JSON.stringify(serializer.serializeValue(mirror));
11 11
12 // Check the mirror hierachy. 12 // Check the mirror hierachy.
13 assertTrue(mirror instanceof debug.Mirror); 13 assertTrue(mirror instanceof debug.Mirror);
14 assertTrue(mirror instanceof debug.ValueMirror); 14 assertTrue(mirror instanceof debug.ValueMirror);
15 assertTrue(mirror instanceof debug.ObjectMirror); 15 assertTrue(mirror instanceof debug.ObjectMirror);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 found++; 135 found++;
136 } 136 }
137 if (Object.is(values[i], o3)) { 137 if (Object.is(values[i], o3)) {
138 found++; 138 found++;
139 } 139 }
140 } 140 }
141 assertEquals(2, found); 141 assertEquals(2, found);
142 } 142 }
143 143
144 testWeakSetValues(weakSetMirror); 144 testWeakSetValues(weakSetMirror);
OLDNEW
« no previous file with comments | « test/mjsunit/es6/debug-stepin-collections-foreach.js ('k') | test/mjsunit/es6/regress/regress-2186.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698