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

Unified Diff: test/mjsunit/harmony/classes-experimental.js

Issue 917933007: Make super() a syntax error in base class constructor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: expand tests slightly Created 5 years, 10 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-experimental.js
diff --git a/test/mjsunit/harmony/classes-experimental.js b/test/mjsunit/harmony/classes-experimental.js
index 657c3b6a9edf34ce0d9c04ef807e36c86ff79da8..e7ebbda735a30cccd2d2d2606424aa26e03714fa 100644
--- a/test/mjsunit/harmony/classes-experimental.js
+++ b/test/mjsunit/harmony/classes-experimental.js
@@ -164,23 +164,6 @@
}());
-(function TestSuperInBaseConstructors() {
- class Base {
- constructor() {
- let exn = null;
- try {
- super();
- } catch (e) {
- exn = e;
- }
- assertTrue(exn instanceof ReferenceError);
- }
- }
-
- new Base();
-}());
-
-
(function TestPrototypeWiring() {
class Base {
constructor(x) {
« test/cctest/test-parsing.cc ('K') | « test/message/super-constructor-extra-statement.out ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698