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

Merged
merged 1 commit into from Aug 3, 2012

Conversation

Projects
None yet
2 participants
Collaborator

sixcircuit 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;
(function(){})(tame.end);

@maxtaco maxtaco added a commit that referenced this pull request Aug 3, 2012

@maxtaco maxtaco Merge pull request #34 from sktaylor/master
Fixed: blank file as input produces invalid javascript file
cded996

@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