
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
arraybuffer.prototype.transfer
Advanced tools
ES Proposal spec-compliant shim for ArrayBuffer.prototype.transfer
An ES6 spec-compliant ArrayBuffer.prototype.transfer shim. Invoke its "shim" method to shim ArrayBuffer.prototype.transfer if it is unavailable.
This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the proposed spec.
Most common usage:
var assert = require('assert');
var transfer = require('arraybuffer.prototype.transfer');
var IsDetachedBuffer = require('es-abstract/2023/IsDetachedBuffer');
var ab = new ArrayBuffer('a');
assert.equal(IsDetachedBuffer(ab), false);
transfer(ab);
assert.equal(IsDetachedBuffer(ab), true);
if (!ArrayBuffer.prototype.transfer) {
transfer.shim();
}
var ab2 = new ArrayBuffer('a');
assert.equal(IsDetachedBuffer(ab2), false);
ab2.transfer();
assert.equal(IsDetachedBuffer(ab2), true);
Simply clone the repo, npm install, and run npm test
FAQs
ES Proposal spec-compliant shim for ArrayBuffer.prototype.transfer
The npm package arraybuffer.prototype.transfer receives a total of 1 weekly downloads. As such, arraybuffer.prototype.transfer popularity was classified as not popular.
We found that arraybuffer.prototype.transfer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.