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

Side by Side Diff: test/mjsunit/es8/async-function-stacktrace.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-destructuring.js ('k') | test/mjsunit/es8/regress/regress-618603.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
6
7 async function test(func, funcs) { 5 async function test(func, funcs) {
8 try { 6 try {
9 await func(); 7 await func();
10 throw new Error("Expected " + func.toString() + " to throw"); 8 throw new Error("Expected " + func.toString() + " to throw");
11 } catch (e) { 9 } catch (e) {
12 var stack = e.stack.split('\n'). 10 var stack = e.stack.split('\n').
13 slice(1). 11 slice(1).
14 map(line => line.trim()). 12 map(line => line.trim()).
15 map(line => line.match(/at (?:(.*) )?.*$/)[1]). 13 map(line => line.match(/at (?:(.*) )?.*$/)[1]).
16 filter(x => typeof x === 'string' && x.length); 14 filter(x => typeof x === 'string' && x.length);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } catch (e) { 167 } catch (e) {
170 throw new Error("FAIL"); 168 throw new Error("FAIL");
171 } 169 }
172 }, ["test"]); 170 }, ["test"]);
173 } 171 }
174 172
175 runTests().catch(e => { 173 runTests().catch(e => {
176 print(e); 174 print(e);
177 quit(1); 175 quit(1);
178 }); 176 });
OLDNEW
« no previous file with comments | « test/mjsunit/es8/async-destructuring.js ('k') | test/mjsunit/es8/regress/regress-618603.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698