better internalPrototype error diagnostic