May 2017
—
this.has = function (string) {
typeCheckString(string);
var existing = self.get(string);
return !!existing;``
`
Message permanent page
ErrorType !== null ? throw new errorType(message) : console.error(message); ^^^^^SyntaxError: Unexpected token throw
— Whats that?
— Your code
— Hah
— In the assert function
— Really? weird
— Happens for me in browser as well
— What the
— Same
— I'll rewrite
— That is strange, I wonder what context it is falling into where throw is unexpected
throw