nl_tokens: Asserts that the supplied value is of the supplied type .
pl_tokens: function ( value , type ) { if ( ! isValidType ( type ) ) { throw <mask> ( 'Invalid type supplied.' ) ; } if ( ! isOfType ( value , type ) ) { argName = getNameForValue ( value ) ; typeName = getNameForType ( type ) ; throw Error ( 'Expected ' + argName + ' to be an instance of ' + typeName + '.' ) ; } }