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

Side by Side Diff: test/mjsunit/es6/regexp-flags.js

Issue 2096933002: Remove all harmony runtime flags which shipped in M51 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 6 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/es6/regexp-constructor.js ('k') | test/mjsunit/es6/species.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 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 // Flags: --harmony-unicode-regexps
6
7 var r1 = /abc/gi; 5 var r1 = /abc/gi;
8 assertEquals("abc", r1.source); 6 assertEquals("abc", r1.source);
9 assertTrue(r1.global); 7 assertTrue(r1.global);
10 assertTrue(r1.ignoreCase); 8 assertTrue(r1.ignoreCase);
11 assertFalse(r1.multiline); 9 assertFalse(r1.multiline);
12 assertFalse(r1.sticky); 10 assertFalse(r1.sticky);
13 assertFalse(r1.unicode); 11 assertFalse(r1.unicode);
14 12
15 // Internal slot of prototype is not read. 13 // Internal slot of prototype is not read.
16 var r2 = { __proto__: r1 }; 14 var r2 = { __proto__: r1 };
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 }, 110 },
113 get unicode() { 111 get unicode() {
114 map.u = counter++; 112 map.u = counter++;
115 }, 113 },
116 get sticky() { 114 get sticky() {
117 map.y = counter++; 115 map.y = counter++;
118 } 116 }
119 }; 117 };
120 testGenericFlags(object); 118 testGenericFlags(object);
121 assertEquals({ g: 0, i: 1, m: 2, u: 3, y: 4 }, map); 119 assertEquals({ g: 0, i: 1, m: 2, u: 3, y: 4 }, map);
OLDNEW
« no previous file with comments | « test/mjsunit/es6/regexp-constructor.js ('k') | test/mjsunit/es6/species.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698