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

Side by Side Diff: test/mjsunit/es6/string-raw.js

Issue 1027593005: [es6] remove --harmony-templates flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove extra references to harmony-templates stuff Created 5 years, 9 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/js-perf-test/JSTests.json ('k') | test/mjsunit/es6/templates.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-templates
6
7 (function testStringRawArity() { 5 (function testStringRawArity() {
8 assertEquals(1, String.raw.length); 6 assertEquals(1, String.raw.length);
9 })(); 7 })();
10 8
11 9
12 (function testStringRawCallSiteToObject() { 10 (function testStringRawCallSiteToObject() {
13 assertThrows("String.raw()", TypeError); 11 assertThrows("String.raw()", TypeError);
14 })(); 12 })();
15 13
16 14
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 }); 247 });
250 [1, 3, 5].forEach(function(v, i) { 248 [1, 3, 5].forEach(function(v, i) {
251 Object.defineProperty(callSiteObj.raw, i, { 249 Object.defineProperty(callSiteObj.raw, i, {
252 get: function() { order.push("raw" + v); return v; } 250 get: function() { order.push("raw" + v); return v; }
253 }); 251 });
254 }); 252 });
255 253
256 assertEquals("12345", String.raw(callSiteObj, arg(2), arg(4), arg(6))); 254 assertEquals("12345", String.raw(callSiteObj, arg(2), arg(4), arg(6)));
257 assertEquals(["length", "raw1", "arg2", "raw3", "arg4", "raw5"], order); 255 assertEquals(["length", "raw1", "arg2", "raw3", "arg4", "raw5"], order);
258 })(); 256 })();
OLDNEW
« no previous file with comments | « test/js-perf-test/JSTests.json ('k') | test/mjsunit/es6/templates.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698