Index: test/mjsunit/strong/literals.js |
diff --git a/test/mjsunit/strong/literals.js b/test/mjsunit/strong/literals.js |
index 347ea1ccacbd567296ab0952f110826df03032e1..a78f793a020439384a6d528f3329426c17698766 100644 |
--- a/test/mjsunit/strong/literals.js |
+++ b/test/mjsunit/strong/literals.js |
@@ -275,61 +275,6 @@ let GeneratorPrototype = (function*(){}).__proto__; |
assertStrongGenerator((new class {*m(){'use strong'}}).m); |
})(); |
-(function WeakClassLiterals() { |
- function assertWeakClass(x) { |
- assertFalse(%IsStrong(x)); |
- assertFalse(%IsStrong(x.prototype)); |
- assertFalse(%IsStrong(new x)); |
- } |
- class C {}; |
- class D extends C {}; |
- class E extends Object {}; |
- // class F extends null {}; |
- assertWeakClass(C); |
- assertWeakClass(D); |
- assertWeakClass(E); |
- // assertWeakClass(F); |
- assertWeakClass(class {}); |
- assertWeakClass(class extends Object {}); |
- // assertWeakClass(class extends null {}); |
- assertWeakClass(class extends C {}); |
- assertWeakClass(class extends class {} {}); |
- assertWeakClass(class C {}); |
- assertWeakClass(class D extends Object {}); |
- // assertWeakClass(class D extends null {}); |
- assertWeakClass(class D extends C {}); |
- assertWeakClass(class D extends class {} {}); |
-})(); |
- |
-(function StrongClassLiterals() { |
- 'use strong'; |
- function assertStrongClass(x) { |
- assertTrue(%IsStrong(x)); |
- assertTrue(%IsStrong(x.prototype)); |
- // TODO(rossberg): strongify class instance |
- // assertTrue(%IsStrong(new x)); |
- } |
- class C {}; |
- class D extends C {}; |
- class E extends Object {}; |
- const W = (1, eval)(() => {'use strict'; return class {}})(); |
- class G extends W {}; |
- assertStrongClass(C); |
- assertStrongClass(D); |
- assertStrongClass(E); |
- assertStrongClass(G); |
- assertStrongClass(class {}); |
- assertStrongClass(class extends Object {}); |
- assertStrongClass(class extends C {}); |
- assertStrongClass(class extends W {}); |
- assertStrongClass(class extends class {} {}); |
- assertStrongClass(class C {}); |
- assertStrongClass(class D extends Object {}); |
- assertStrongClass(class D extends C {}); |
- assertStrongClass(class D extends W {}); |
- assertStrongClass(class D extends class {} {}); |
-})(); |
- |
(function WeakRegExpLiterals() { |
function assertWeakRegExp(x) { |
assertFalse(%IsStrong(x)); |