Files
vectorcraft/crates
dotCooCoo 029482d0d7 Scripts: class code, eval and block functions follow the ES2015 rules
- Direct eval in a derived constructor, or in an arrow function inside
  one, reads the constructor's this binding when it runs, so
  eval('this') before super() throws a ReferenceError, and an arrow
  function made by the eval code sees this once super() returns.
- A class's heritage and computed keys run as strict mode code inside
  sloppy code; the code after the class, and a handler of what they
  throw, stay sloppy.
- A super property write that cannot be made throws with
  Realm::set_strict_writes, as other property writes do.
- A labeled function in a block is made when the block is entered and
  declares its name in the block, so { let f; L: function f() {} } is
  a SyntaxError. A block function whose name a function of an
  enclosing block also declares no longer assigns the outer variable.
- Methods reject duplicate parameter names outside strict mode code.
- With a global object that is not extensible, a var that would add a
  property throws a TypeError before the script or the eval code
  declares anything.
- The receiver, arguments and new.target of a call, a strict eval's
  own environment and spread's elements stay reachable while their
  scopes and properties are made, and spread counts the array's new
  properties against the heap limit before it adds them.
- Tagged template strings objects are dropped once nothing but the
  cache holds their code, also for code with several sites.
- A //@ or # directive after a template with a substitution that
  spans lines is read only at the start of a line.
- The code size estimate counts a block scope's entries by their size.
2026-11-22 06:41:35 -08:00
..
2026-11-19 15:24:38 +07:00