octane icon indicating copy to clipboard operation
octane copied to clipboard

base.js `performance` assignment forces IE and Safari to use fallback

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

In base.js there is `var performance = performance || {};`. In IE and Safari 
the `var performance` is initialized as `undefined` which overwrites the 
built-in `performance` object and causes them to use the `Date.now` fallback 
which can cost them on the benchmark. A way to avoid this is to do a simple 
`typeof` check. `if (typeof performance == 'undefined') performance = {};`.

Original issue reported on code.google.com by [email protected] on 30 Oct 2014 at 10:18

GoogleCodeExporter avatar Apr 11 '15 04:04 GoogleCodeExporter