Skip to content

Commit

Permalink
Fixing some newline-preserving issues
Browse files Browse the repository at this point in the history
Done internally as part of
facebookarchive/jstransform@f9836a3
  • Loading branch information
zpao committed Nov 5, 2014
1 parent 1fd187b commit a3509e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vendor/fbtransform/transforms/xjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ function renderXJSLiteral(object, isLast, state, start, end) {
function renderXJSExpressionContainer(traverse, object, isLast, path, state) {
// Plus 1 to skip `{`.
utils.move(object.range[0] + 1, state);
utils.catchup(object.expression.range[0], state);
traverse(object.expression, path, state);

if (!isLast && object.expression.type !== Syntax.XJSEmptyExpression) {
Expand Down

0 comments on commit a3509e5

Please sign in to comment.