mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
Conflicts were resolved by keeping both sides: - The compiler keeps the base branch's `declared_function` and its block function names, and `list_scope` also declares class names. - Global and eval code keep their environments and code reachable through `instantiate_global`, and declarations check functions before variables with `check_global_functions` and `check_global_vars`. - A call's frame keeps `new.target` and the class bindings, and its heap reservation counts the class code's hidden bindings. - Spread reads `String` objects and an array's length as the base branch does, and keeps its list of elements counted until the elements are the array's properties. A string's characters are counted only until the elements are reachable from the roots, so a collection does not count them twice.