tcr / mug

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unsupported: Global object/global variables

tcr opened this issue · comments

The global object is not currently supported. This should be bound to a JSEnvironment and the config option toplevel variables should be removed.

Undeclared variables should be operations on the global object. Currently Mug aborts when it finds an undeclared top-level variable, should be easy enough to modify once global object support is added.

Added support.