Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1588)

Unified Diff: test/mjsunit/harmony/destructuring.js

Issue 1130623004: [destructuring] Implement basic binding destructuring infrastructure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+}());
« src/pattern-matcher.cc ('K') | « src/pattern-matcher.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698