trying to reduce some runtime costs

This commit is contained in:
Danny Yoo 2011-08-05 17:35:27 -04:00
parent b5c138f2eb
commit 925b4c4ff0

View File

@ -33,7 +33,7 @@
}
testArgument(
MACHINE,
parameterizedPredicateName.apply(null, args),
function() { parameterizedPredicateName.apply(null, args) },
function(x) {
return parameterizedPredicate.apply(null, [x].concat(args));
},
@ -101,6 +101,9 @@
if (predicate(val)) {
return true;
} else {
if (typeof(expectedTypeName) === 'function') {
expectedTypeName = expectedTypeName();
}
plt.baselib.exceptions.raiseArgumentTypeError(MACHINE,
callerName,
expectedTypeName,