Skip to content

Commit a3509e5

Browse files
committed
Fixing some newline-preserving issues
Done internally as part of facebookarchive/jstransform@f9836a3
1 parent 1fd187b commit a3509e5

File tree

1 file changed

+1
-0
lines changed
  • vendor/fbtransform/transforms

1 file changed

+1
-0
lines changed

vendor/fbtransform/transforms/xjs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ function renderXJSLiteral(object, isLast, state, start, end) {
214214
function renderXJSExpressionContainer(traverse, object, isLast, path, state) {
215215
// Plus 1 to skip `{`.
216216
utils.move(object.range[0] + 1, state);
217+
utils.catchup(object.expression.range[0], state);
217218
traverse(object.expression, path, state);
218219

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

0 commit comments

Comments
 (0)