Comparing version 4.2.0 to 4.3.0
@@ -38,5 +38,2 @@ /*! | ||
* | ||
* - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property | ||
* on objects. | ||
* | ||
* - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. | ||
@@ -55,9 +52,6 @@ * | ||
function typedArraySupport () { | ||
function Bar () {} | ||
try { | ||
var arr = new Uint8Array(1) | ||
arr.foo = function () { return 42 } | ||
arr.constructor = Bar | ||
return arr.foo() === 42 && // typed array instances can be augmented | ||
arr.constructor === Bar && // constructor can be set | ||
typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` | ||
@@ -64,0 +58,0 @@ arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` |
{ | ||
"name": "buffer", | ||
"description": "Node.js Buffer API, for the browser", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh", |
@@ -5,8 +5,2 @@ if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false | ||
test('buf.constructor is Buffer', function (t) { | ||
var buf = new B([1, 2]) | ||
t.strictEqual(buf.constructor, B) | ||
t.end() | ||
}) | ||
test('instanceof Buffer', function (t) { | ||
@@ -13,0 +7,0 @@ var buf = new B([1, 2]) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144708
3720