Index: test/message/rest-param-object-setter-sloppy.js |
diff --git a/test/message/formal-parameters-bad-rest.js b/test/message/rest-param-object-setter-sloppy.js |
similarity index 65% |
copy from test/message/formal-parameters-bad-rest.js |
copy to test/message/rest-param-object-setter-sloppy.js |
index c67e1de93fed808fb0578e9029dabef201ab51e4..08c03298dc26dfee9f31e39108ba0b1519a96988 100644 |
--- a/test/message/formal-parameters-bad-rest.js |
+++ b/test/message/rest-param-object-setter-sloppy.js |
@@ -4,4 +4,8 @@ |
// |
// Flags: --harmony-rest-parameters |
-function foo(...b, a) { return a } |
+var _bad = "this should fail!"; |
+({ |
+ get bad() { return _bad; }, |
+ set bad(...args) { _bad = args[0]; } |
+}); |