Reviewers: arv, rossberg,

Message:
PTAL: missed file - a regression test.

Description:
Regression test for v8:3930.

[email protected],[email protected]
BUG=v8:3930
LOG=N

Please review this at https://codereview.chromium.org/961353002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+28, -0 lines):
  A test/mjsunit/harmony/regress/regress-3930.js


Index: test/mjsunit/harmony/regress/regress-3930.js
diff --git a/test/mjsunit/harmony/regress/regress-3930.js b/test/mjsunit/harmony/regress/regress-3930.js
new file mode 100644
index 0000000000000000000000000000000000000000..2436a2d0c38f89da1430bd25d55a6a04a8332bf5
--- /dev/null
+++ b/test/mjsunit/harmony/regress/regress-3930.js
@@ -0,0 +1,28 @@
+// Copyright 2015 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';
+
+class Stack extends Array { }
+
+assertThrows(function() { new Stack(); }, TypeError);
+
+class Stack1 extends Array {
+  constructor() { super(); }
+}
+
+assertThrows(function() { new Stack1(); }, TypeError);
+
+class Stack2 extends Array {
+  constructor() { super(1, 25); }
+}
+
+assertThrows(function() { new Stack2(); }, TypeError);
+
+let X = Array;
+
+class Stack4 extends X { }
+
+assertThrows(function() { new Stack2(); }, TypeError);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to