Index: test/mjsunit/harmony/classes.js |
diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js |
index 7156dbdb8ef6c3c11b47ee13012af8e56ea589ca..a83d483bd9a20945d383f1bda233875fb87b748c 100644 |
--- a/test/mjsunit/harmony/classes.js |
+++ b/test/mjsunit/harmony/classes.js |
@@ -165,3 +165,15 @@ |
new C(); |
})(); |
*/ |
+ |
+ |
+(function TestToString() { |
+ class C {} |
+ assertEquals('class C {}', C.toString()); |
+ |
+ class D { constructor() { 42; } } |
+ assertEquals('class D { constructor() { 42; } }', D.toString()); |
+ |
+ class E { x() { 42; } } |
+ assertEquals('class E { x() { 42; } }', E.toString()); |
+})(); |