mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
- A string in `0b` or `0o` form converts to a number in a realm with `Options::es2015`, so an array iterator over an object whose length is "0b10" visits two elements. Realms without the option still read such strings as NaN. - `JSON.stringify` calls a String or Number object's `@@toPrimitive` method before using its stored value, for the value itself, a replacer list entry and the `space` argument. - A host function that returns a Symbol in a realm without the option throws a `TypeError`. A Symbol's description is charged to the heap before it is built. - A text function takes a Symbol as `String(symbol)` gives it, and a data function refuses an object or array with an enumerable Symbol-keyed property; checking the keys takes fuel. - A Symbol-keyed lookup takes a unit of fuel for each prototype it passes, and removing most of an object's Symbol keys releases their storage.