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

Side by Side Diff: test/mjsunit/es6/pattern-brand-check.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/no-unicode-regexp-flag.js ('k') | test/mjsunit/es6/promise-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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 function createNonRegExp(calls) { 5 function createNonRegExp(calls) {
8 return { 6 return {
9 get [Symbol.match]() { 7 get [Symbol.match]() {
10 calls.push("@@match"); 8 calls.push("@@match");
11 return undefined; 9 return undefined;
12 }, 10 },
13 get [Symbol.replace]() { 11 get [Symbol.replace]() {
14 calls.push("@@replace"); 12 calls.push("@@replace");
15 return undefined; 13 return undefined;
16 }, 14 },
(...skipping 28 matching lines...) Expand all
45 var calls = []; 43 var calls = [];
46 "".split(createNonRegExp(calls)); 44 "".split(createNonRegExp(calls));
47 assertEquals(["@@split", "@@toPrimitive"], calls); 45 assertEquals(["@@split", "@@toPrimitive"], calls);
48 })(); 46 })();
49 47
50 (function testStringReplaceBrandCheck() { 48 (function testStringReplaceBrandCheck() {
51 var calls = []; 49 var calls = [];
52 "".replace(createNonRegExp(calls), ""); 50 "".replace(createNonRegExp(calls), "");
53 assertEquals(["@@replace", "@@toPrimitive"], calls); 51 assertEquals(["@@replace", "@@toPrimitive"], calls);
54 })(); 52 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/no-unicode-regexp-flag.js ('k') | test/mjsunit/es6/promise-species.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698