mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-25 06:24:27 +08:00
Object.setPrototypeOf and Object.create threw "Object prototype may only be an Object or null" without the value Node appends. The message now ends with the value's string form, as in Node: "...: 7", "...: undefined", "...: Symbol(tag)". A prototype or receiver that is a valid object of a kind these functions do not handle yet (a function or Map prototype for Object.create, a Map prototype or receiver for Object.setPrototypeOf) threw the same TypeError. It now throws an Error that says the operation is not supported for that value.