
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
generic-slice
Advanced tools
Array.prototype.slice.call()-like method for TypedArrays, Buffers and Arguments
A poly fill for slice that uniformly and efficiently implements Array-like semantics for the following classses of objects:
Buffers()npm install generic-slice
var slice = require("generic-slice")
var x = new Float32Array(4)
x[0] = 1
x[1] = 2
x[2] = 3
x[3] = 4
var y = slice(x, 0, 2)
// Now:
// y = [ 1, 2 ]
// x = [ 1, 2, 3, 4 ]
y[0] = 1000
// Now:
// y = [ 1000, 2 ]
// x = [ 1, 2, 3, 4 ]
require("generic-slice")(array[, sliceBegin, sliceEnd])A generic polyfill for slicing array-like objects.
array is a typed array, buffer, Array, or Arguments objectsliceBegin is an optional argument giving the start of the slice. Negative values change counting to end of array. (Default: 0)sliceEnd is an optional argument giving the end of the slice. Negative values wrap around. (Default: array.length)Returns A copy of the array from the range [sliceBegin, sliceEnd)
Because:
slice got dropped from the typed array specification (and the replacement method, .subarray() merely returns a view and does not make a copy)Buffer's slice method does not make a copy like Array's slice does, and so it has inconsistent semantics.Arguments doesn't have a slice method eitherArray.prototype.slice.call doesn't properly preserve the types of things like Buffers or typed arraysArray.prototype.slice.call can be slower than an appropriate implementation. For example, to clone a typed array you can slice the underlying ArrayBuffer assuming that you are careful about how you perform indexing.All of the major edge cases should be tested. If you find a bug, please open an issue or send a pull request.
(c) 2013 Mikola Lysenko. MIT License
FAQs
Array.prototype.slice.call()-like method for TypedArrays, Buffers and Arguments
We found that generic-slice 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.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.