mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 14:46:03 +00:00
A literal makes an extensible object whose properties are writable and configurable, and an array whose length is writable. toSource wrote a property defined with writable or configurable false, a sealed, frozen or non-extensible object or array, and an array with a read-only length as an ordinary literal, so evaluating the text gave an open value. toSource now throws a TypeError for each of these, at any depth, as it already does for getters, hidden properties and other prototypes. Properties defined with every flag on are written as before.