mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
Object.setPrototypeOf with a boolean, number, string, bigint or symbol receiver now returns the receiver when the prototype is null or any object or function, including class instances, classes, Maps, Sets, typed arrays, promises and Object.prototype. Other prototypes throw a TypeError, as in Node.