Skip to content

Commit

Permalink
Fix invalid es6.
Browse files Browse the repository at this point in the history
`export let now = Date.now || () => new Date().getTime();` is not valid es6 and
is rejected by acorn (used by rollup) as well as v8.  That it parses in babel is
a bug.
  • Loading branch information
hjdivad committed Sep 20, 2016
1 parent 77e218e commit c8aab0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rsvp/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export let isArray = _isArray;

// Date.now is not available in browsers < IE9
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility
export let now = Date.now || () => new Date().getTime();
export let now = Date.now || (() => new Date().getTime());

function F() { }

Expand Down

0 comments on commit c8aab0c

Please sign in to comment.