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

Unified Diff: test/mjsunit/strong/literals.js

Issue 1347243004: [strong] Implement revised strong class semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: \cl feedback Created 5 years, 3 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/mjsunit/strong/class-weak-extend.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « test/mjsunit/strong/class-weak-extend.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698