mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v3.9.1.
This commit is contained in:
@@ -2,10 +2,10 @@ var constant = require('../utility/constant'),
|
||||
getNative = require('./getNative');
|
||||
|
||||
/** Native method references. */
|
||||
var ArrayBuffer = getNative(root, 'ArrayBuffer'),
|
||||
var ArrayBuffer = getNative(global, 'ArrayBuffer'),
|
||||
bufferSlice = getNative(ArrayBuffer && new ArrayBuffer(0), 'slice'),
|
||||
floor = Math.floor,
|
||||
Uint8Array = getNative(root, 'Uint8Array');
|
||||
Uint8Array = getNative(global, 'Uint8Array');
|
||||
|
||||
/** Used to clone array buffers. */
|
||||
var Float64Array = (function() {
|
||||
@@ -13,7 +13,7 @@ var Float64Array = (function() {
|
||||
// where the array buffer's `byteLength` is not a multiple of the typed
|
||||
// array's `BYTES_PER_ELEMENT`.
|
||||
try {
|
||||
var func = getNative(root, 'Float64Array'),
|
||||
var func = getNative(global, 'Float64Array'),
|
||||
result = new func(new ArrayBuffer(10), 0, 1) && func;
|
||||
} catch(e) {}
|
||||
return result || null;
|
||||
|
||||
Reference in New Issue
Block a user