Skip to content

Commit

Permalink
Parity with parser updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 4, 2017
1 parent a20b583 commit 71e54e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj = {...if true: {a: 1}}
assert.deepEqual(obj, {a: 1})
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
(() => {
const _obj = {};if (true) {
_obj.k = v;
}return _obj;
const _obj = {};if (true) _obj.k = v;return _obj;
})();
10 changes: 5 additions & 5 deletions test/fixtures/object-block-ambiguity/basic/expected.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import _isMatch from "@oigroup/lightscript-runtime/isMatch";function f() {
return { x };
}const g = () => {
return {
x
};
};const y = true ? { x } : void 0;
}const g = () => ({
x
});

const y = true ? { x } : void 0;

const w = (_it => {
if (_isMatch(y, _it)) {
Expand Down

0 comments on commit 71e54e6

Please sign in to comment.