6 Commits

Author SHA1 Message Date
Michael Casebolt
2e6a8a2b47 Setting global.window no longer necessary for testing. 2016-08-02 22:08:34 -07:00
sole
3e49aecaaf (feat) Remove minified version, fixes #206 2015-09-29 13:51:42 +01:00
Ben Ripkens
0adef8e4a5 Ensure compatibility with ECMAScript 2015 modules
The module evaluation context of ECMAScript 2015 modules is not the
global context. As such `this` does not point to the global `window`
object. This is problematic for users of ECMAScript 2015 modules as the
included `window.performance.now` polyfill will fail to work.

Instead of `this`, the polyfill should be added to the global `window`
object directly. This is unproblematic because the following code
assumes that `performance.now` will be available under the global
`window` object, i.e. the code was never execution environment agnostic.

Furthermore, established polyfills like the one from Paul Irish also
directly register the polyfill on the global `window` object.

Fixes #209

[1] https://gist.github.com/paulirish/5438650
2015-08-27 16:31:04 +02:00
Lukas
143f1976ef Add performance.now polyfill 2015-02-13 16:59:09 +01:00
Soledad Penades
22a8c68fa5 also test minified version automatically 2014-08-05 08:06:08 -07:00
Soledad Penades
c955377be0 start adding nodeunit-based tests 2014-08-03 15:51:24 -07:00