added buzz demo, fix undefined() -> undefined

This commit is contained in:
Misko Hevery
2010-07-23 10:48:18 -07:00
parent 2987f7f705
commit 8015e09e38
4 changed files with 87 additions and 24 deletions

View File

@@ -602,6 +602,8 @@ Parser.prototype = {
var fnPtr = fn(self);
if (typeof fnPtr === 'function') {
return fnPtr.apply(self, args);
} else if (fnPtr === undefined) {
return fnPtr;
} else {
throw "Expression '" + fn.isAssignable + "' is not a function.";
}