tcr / mug

A self-hosted JavaScript compiler for the JVM. Written in CoffeeScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Primitives aren't autoboxed

tcr opened this issue · comments

Primitives should be autoboxed, meaning that all objects should have [[ToObject]] implemented.

Current plan is to move all object-specific method signatures (get/set/has) to JSPrimitive and let JSObject override them to implement hashing. JSPrimitives will, by default, autobox themselves at this step.