From 227d51a5569c53209880a3ba4608480492eb4a60 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 9 Nov 2014 22:10:43 +1100 Subject: [PATCH] add AssignmentExpression ObjectPattern test --- .../fixtures/transformation/destructuring/assignment/actual.js | 1 + .../transformation/destructuring/assignment/expected.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/test/fixtures/transformation/destructuring/assignment/actual.js b/test/fixtures/transformation/destructuring/assignment/actual.js index d14ce7e47d..653338ee9a 100644 --- a/test/fixtures/transformation/destructuring/assignment/actual.js +++ b/test/fixtures/transformation/destructuring/assignment/actual.js @@ -1 +1,2 @@ [a, b] = f(); +({ x }) = e(); diff --git a/test/fixtures/transformation/destructuring/assignment/expected.js b/test/fixtures/transformation/destructuring/assignment/expected.js index 792c6693a2..eda9b31d15 100644 --- a/test/fixtures/transformation/destructuring/assignment/expected.js +++ b/test/fixtures/transformation/destructuring/assignment/expected.js @@ -4,3 +4,6 @@ var _ref = f(); a = _ref[0]; b = _ref[1]; +var _ref2 = e(); + +x = _ref2.x;