tcr / mug

A self-hosted JavaScript compiler for the JVM. Written in CoffeeScript.
150 stars 5 forks source link

Primitives aren't autoboxed #10

Closed tcr closed 13 years ago

tcr commented 13 years ago

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.