Skip to content

Commit

Permalink
Also, let's keep Node v6 compatibility, shall we?
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgul committed Mar 9, 2019
1 parent 33da9cf commit c582790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class Expression

toJSON()
{
return { type: this.type, ...this };
/* eslint-disable prefer-object-spread */
return Object.assign({ type: this.type }, this);
} // end toJSON

render()
Expand Down

0 comments on commit c582790

Please sign in to comment.