trying to reduce some runtime costs
This commit is contained in:
parent
b5c138f2eb
commit
925b4c4ff0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user