fix Scope::push block type error message
This commit is contained in:
parent
04bd023787
commit
b8ec87e058
@ -112,7 +112,7 @@ Scope.prototype.push = function (name, id, init) {
|
||||
init: init
|
||||
};
|
||||
} else {
|
||||
throw new Error("wtf");
|
||||
throw new TypeError("cannot add a declaration here in node type " + block.type);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user