fix Scope::push block type error message

This commit is contained in:
Sebastian McKenzie 2014-11-24 00:59:56 +11:00
parent 04bd023787
commit b8ec87e058

View File

@ -112,7 +112,7 @@ Scope.prototype.push = function (name, id, init) {
init: init init: init
}; };
} else { } else {
throw new Error("wtf"); throw new TypeError("cannot add a declaration here in node type " + block.type);
} }
}; };