Files
vectorcraft/crates
dotCooCoo c021b269e7 JavaScript: tighten Symbol conversions, lookups and host crossings in ES2015 realms
- 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.
2026-11-22 01:24:03 -08:00
..
2026-11-19 15:24:38 +07:00