Index: test/mjsunit/harmony/classes.js |
diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js |
index 767962eeeb5b6fb037aff4680517061b99d88e0a..8748f629ed1f0f653f1a5dfa49fc86059339224a 100644 |
--- a/test/mjsunit/harmony/classes.js |
+++ b/test/mjsunit/harmony/classes.js |
@@ -624,55 +624,6 @@ function assertAccessorDescriptor(object, name) { |
})(); |
-(function TestDefaultConstructorArguments() { |
- var args, self; |
- class Base { |
- constructor() { |
- self = this; |
- args = arguments; |
- } |
- } |
- class Derived extends Base {} |
- |
- new Derived; |
- assertEquals(0, args.length); |
- |
- new Derived(0, 1, 2); |
- assertEquals(3, args.length); |
- assertTrue(self instanceof Derived); |
- |
- var arr = new Array(1e5); |
- var obj = {}; |
- Derived.apply(obj, arr); |
- assertEquals(1e5, args.length); |
- assertEquals(obj, self); |
-})(); |
- |
- |
-(function TestDefaultConstructorArguments2() { |
- var args; |
- class Base { |
- constructor(x, y) { |
- args = arguments; |
- } |
- } |
- class Derived extends Base {} |
- |
- new Derived; |
- assertEquals(0, args.length); |
- |
- new Derived(1); |
- assertEquals(1, args.length); |
- assertEquals(1, args[0]); |
- |
- new Derived(1, 2, 3); |
- assertEquals(3, args.length); |
- assertEquals(1, args[0]); |
- assertEquals(2, args[1]); |
- assertEquals(3, args[2]); |
-})(); |
- |
- |
/* TODO(arv): Implement |
(function TestNameBindingInConstructor() { |
class C { |