nl_tokens: Internal : Checks to make sure the given object is of the type specified in the given association descriptor . Returns nothing . Throws Error if the given object isn t of the type specified in the association descriptor .
pl_tokens: function checkAssociatedType ( desc , o ) { var klass = resolve ( desc . klass ) ; if ( o && ! ( o instanceof klass ) ) { throw <mask> Error ( desc . debugName + ": expected an object of type `" + desc . klass + "` but received `" + o + "` instead" ) ; } }