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

Unified Diff: test/message/syntactic-tail-call-generator.js

Issue 2278413003: Disallow tail calls from async functions and generators (Closed)
Patch Set: Adding test suggested by neis Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/message/syntactic-tail-call-generator.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/syntactic-tail-call-generator.js
diff --git a/test/message/syntactic-tail-call-of-new.js b/test/message/syntactic-tail-call-generator.js
similarity index 81%
copy from test/message/syntactic-tail-call-of-new.js
copy to test/message/syntactic-tail-call-generator.js
index 60adec70275b99dba702e2a2ff97410a4587d1a3..c958875bcba7b202e1436734b68cadcd23276077 100644
--- a/test/message/syntactic-tail-call-of-new.js
+++ b/test/message/syntactic-tail-call-generator.js
@@ -8,6 +8,7 @@ function f() {
return 1;
}
-function g() {
- return continue new f() ;
+function* g() {
+ 'use strict';
+ return continue f();
}
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/message/syntactic-tail-call-generator.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698