Index: test/mjsunit/es6/classes.js |
diff --git a/test/mjsunit/es6/classes.js b/test/mjsunit/es6/classes.js |
index ac10f0e033e81a24f837974d5f90e1cc975152b7..d0138a427a8c0af593637c9337b1094eb0c7a6e9 100644 |
--- a/test/mjsunit/es6/classes.js |
+++ b/test/mjsunit/es6/classes.js |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --harmony-sloppy --allow-natives-syntax |
+// Flags: --harmony-sloppy --harmony-function-name --allow-natives-syntax |
(function TestBasics() { |
var C = class C {} |
@@ -22,13 +22,11 @@ |
class D2 { constructor() {} } |
assertEquals('D2', D2.name); |
- // TODO(arv): The logic for the name of anonymous functions in ES6 requires |
- // the below to be 'E'; |
var E = class {} |
- assertEquals('', E.name); // Should be 'E'. |
+ assertEquals('E', E.name); // Should be 'E'. |
var F = class { constructor() {} }; |
- assertEquals('', F.name); // Should be 'F'. |
+ assertEquals('F', F.name); // Should be 'F'. |
})(); |