Index: test/message/super-constructor.js |
diff --git a/test/mjsunit/regress/regress-416416.js b/test/message/super-constructor.js |
similarity index 63% |
copy from test/mjsunit/regress/regress-416416.js |
copy to test/message/super-constructor.js |
index 66e882e0fc348da422406c5ecf35ef454428455a..9c96d9bc34ada080b5a90e78fa9b8f967da5ca66 100644 |
--- a/test/mjsunit/regress/regress-416416.js |
+++ b/test/message/super-constructor.js |
@@ -1,14 +1,14 @@ |
// Copyright 2014 the V8 project authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// |
+// Flags: --harmony-classes |
+'use strict'; |
-function foo() { |
- try { |
- String.prototype.length.x(); |
- } catch (e) { |
+class C { |
+ constructor() { |
+ super(this.x); |
} |
} |
-foo(); |
-foo(); |
-foo(); |
+new C(); |