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

Side by Side Diff: test/mjsunit/es6/regexp-constructor.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/promise-species.js ('k') | test/mjsunit/es6/regexp-flags.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-regexp-subclass
6
7 "use strict"; 5 "use strict";
8 6
9 function should_not_be_called() { 7 function should_not_be_called() {
10 throw new Error("should not be called"); 8 throw new Error("should not be called");
11 } 9 }
12 10
13 (function() { 11 (function() {
14 var r = new RegExp("biep"); 12 var r = new RegExp("biep");
15 assertTrue(r === RegExp(r)); 13 assertTrue(r === RegExp(r));
16 assertFalse(r === new RegExp(r)); 14 assertFalse(r === new RegExp(r));
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 (function() { 103 (function() {
106 class A extends RegExp { 104 class A extends RegExp {
107 get ["constructor"]() { log.push("constructor"); return RegExp; } 105 get ["constructor"]() { log.push("constructor"); return RegExp; }
108 } 106 }
109 var r = new A("biep"); 107 var r = new A("biep");
110 var log = []; 108 var log = [];
111 var r2 = RegExp(r); 109 var r2 = RegExp(r);
112 assertEquals(["constructor"], log); 110 assertEquals(["constructor"], log);
113 assertTrue(r === r2); 111 assertTrue(r === r2);
114 })(); 112 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/promise-species.js ('k') | test/mjsunit/es6/regexp-flags.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698