tcr / mug

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

NPE compiling r.js 2.1.2 #24

Open mdaniel opened 11 years ago

mdaniel commented 11 years ago
  1. Fresh clone of mug.git
  2. cd mug-compiler
  3. wget -O r_2_1_2.js https://raw.github.com/jrburke/r.js/2.1.2/dist/r.js
  4. java -cp mug-runtime-0.2.0-jar-with-dependencies.jar;asm-3.3.jar;lib\mug-compiler.jar js.mug.compiler r_2_1_2.js
  5. Observe the following kaboom
Starting compilation.
Compiling file r_2_1_2.js as 'js/r_2_1_2'...
Exception in thread "main" java.lang.NullPointerException
        at js.jast.parser$closure$20.invoke(../src/jast/parser.js:532)
        at js.mug.compiler$closure$74.invoke(../src/mug/compiler.js:1705)
        at mug.runtime.JSFunction.instantiate(JSFunction.java:58)
        at js.mug.compiler$closure$81.invoke(../src/mug/compiler.js:1842)
        at js.mug.compiler.load(../src/mug/compiler.js:1871)
        at js.mug.compiler.main(../src/mug/compiler.js)