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

Unified Diff: test/mjsunit/harmony/classes-lazy-parsing.js

Issue 1164073003: [es6] super.prop, eval and lazy functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make the logger use 2 fields Created 5 years, 6 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 | « test/cctest/test-parsing.cc ('k') | test/mjsunit/harmony/object-literals-super.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/classes-lazy-parsing.js
diff --git a/test/mjsunit/harmony/classes-lazy-parsing.js b/test/mjsunit/harmony/classes-lazy-parsing.js
index 2c0301957a494e377e8143801fa2588eab047e72..ceac9aa0761aebe42a0185b400ac6bb7f5b53ef1 100644
--- a/test/mjsunit/harmony/classes-lazy-parsing.js
+++ b/test/mjsunit/harmony/classes-lazy-parsing.js
@@ -16,6 +16,19 @@ class Derived extends Base {
m() {
return super.m();
}
+ evalM() {
+ return eval('super.m()');
+ }
}
assertEquals(42, new Derived().m());
+assertEquals(42, new Derived().evalM());
+
+
+class LazyDerived extends Base {
+ constructor() {
+ eval('super()');
+ }
+}
+assertInstanceof(new LazyDerived(), LazyDerived);
+assertInstanceof(new LazyDerived(), Base);
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/mjsunit/harmony/object-literals-super.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698