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

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: Increment the preparse data version 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
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);

Powered by Google App Engine
This is Rietveld 408576698