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

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

Issue 1928203002: [es8] More spec compliant syntactic tail calls implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Some STC tests ported for PTC Created 4 years, 7 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
Index: test/message/syntactic-tail-call-in-subclass.js
diff --git a/test/message/syntactic-tail-call-in-try.js b/test/message/syntactic-tail-call-in-subclass.js
similarity index 71%
copy from test/message/syntactic-tail-call-in-try.js
copy to test/message/syntactic-tail-call-in-subclass.js
index 97eb4f757ab27e898e888078a46b80a8df61097a..aedfebd5b31dcbfc1410479e772ee212adb3ade8 100644
--- a/test/message/syntactic-tail-call-in-try.js
+++ b/test/message/syntactic-tail-call-in-subclass.js
@@ -4,13 +4,11 @@
// Flags: --harmony-explicit-tailcalls
-function f() {
- return 1;
-}
-
function g() {
- try {
- return continue f();
- } catch(e) {
+ class A {};
+ class B extends A {
+ constructor() {
+ return continue f() ;
+ }
}
}
« no previous file with comments | « test/message/syntactic-tail-call-in-logical-or.out ('k') | test/message/syntactic-tail-call-in-subclass.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698