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

Side by Side Diff: test/mjsunit/es8/async-destructuring.js

Issue 2621173002: Remove --harmony-async-await runtime flag (Closed)
Patch Set: Update test ref Created 3 years, 11 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/es8/async-await-species.js ('k') | test/mjsunit/es8/async-function-stacktrace.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-async-await --allow-natives-syntax 5 // Flags: --allow-natives-syntax
6 6
7 function assertThrowsAsync(run, errorType, message) { 7 function assertThrowsAsync(run, errorType, message) {
8 var actual; 8 var actual;
9 var hadValue = false; 9 var hadValue = false;
10 var hadError = false; 10 var hadError = false;
11 var promise = run(); 11 var promise = run();
12 12
13 if (typeof promise !== "object" || typeof promise.then !== "function") { 13 if (typeof promise !== "object" || typeof promise.then !== "function") {
14 throw new MjsUnitAssertionError( 14 throw new MjsUnitAssertionError(
15 "Expected " + run.toString() + 15 "Expected " + run.toString() +
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 assertEquals(1, (async function(x, y = 1, z, v = 2, ...a) {}).length); 507 assertEquals(1, (async function(x, y = 1, z, v = 2, ...a) {}).length);
508 })(); 508 })();
509 509
510 (function TestDirectiveThrows() { 510 (function TestDirectiveThrows() {
511 "use strict"; 511 "use strict";
512 512
513 assertThrows("(async function(x=1){'use strict';})", SyntaxError); 513 assertThrows("(async function(x=1){'use strict';})", SyntaxError);
514 assertThrows("(async function(a, x=1){'use strict';})", SyntaxError); 514 assertThrows("(async function(a, x=1){'use strict';})", SyntaxError);
515 assertThrows("(async function({x}){'use strict';})", SyntaxError); 515 assertThrows("(async function({x}){'use strict';})", SyntaxError);
516 })(); 516 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es8/async-await-species.js ('k') | test/mjsunit/es8/async-function-stacktrace.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698