Chromium Code Reviews| Index: test/mjsunit/harmony/destructuring.js |
| diff --git a/test/message/export-duplicate-as.js b/test/mjsunit/harmony/destructuring.js |
| similarity index 50% |
| copy from test/message/export-duplicate-as.js |
| copy to test/mjsunit/harmony/destructuring.js |
| index 49b52d4b17177e9443445f00379227cce07a034d..1f2dd8999b142415d637b7bb11dfceea3db735a3 100644 |
| --- a/test/message/export-duplicate-as.js |
| +++ b/test/mjsunit/harmony/destructuring.js |
| @@ -2,8 +2,10 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // |
| -// MODULE |
| +// Flags: --harmony-destructuring |
| -var a, b; |
| -export { a as c }; |
| -export { a, b as c }; |
| +(function TestObjectLiteralPattern() { |
| + var { x : x, y : y } = { x : 1, y : 2 }; |
|
arv (Not doing code reviews)
2015/05/08 19:09:49
Also:
var {z} = {z: 3};
Should work for free sin
Dmitry Lomov (no reviews)
2015/05/11 11:07:28
Done.
|
| + assertEquals(1, x); |
| + assertEquals(2, y); |
| +}()); |