Add fallback for Date.now and keep Array#isArray fallback in modern builds.

Former-commit-id: 4c5ca88d73b8624fdebf50b40c0384219008cb7c
This commit is contained in:
John-David Dalton
2013-08-09 09:26:07 -07:00
parent f0f23d491c
commit dda56405e6
7 changed files with 178 additions and 173 deletions

View File

@@ -497,7 +497,7 @@
fnToString = Function.prototype.toString,
getPrototypeOf = reNative.test(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf,
hasOwnProperty = objectProto.hasOwnProperty,
now = reNative.test(now = Date.now) && now,
now = reNative.test(now = Date.now) && now || function() { return +new Date; },
push = arrayRef.push,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
setImmediate = context.setImmediate,