Skip to content

Fixed: blank file as input produces invalid javascript file #34

merged 1 commit into from Aug 3, 2012

2 participants

sktaylor commented Aug 3, 2012

Running tamejs on an empty file, produced an invalid javascript file. Notice the call to "undefined" as a function on the last line. Now it calls an anonymous function.

Output Was:

var tame = require('tamejs').runtime;

var __tame_defer_cb = null;
undefined (tame.end);

Output Is:

var tame = require('tamejs').runtime;

var __tame_defer_cb = null;

@maxtaco maxtaco merged commit cded996 into maxtaco:master Aug 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.