Message from JavaScript discussions

May 2017

— At assert (/home/trgwii/.node_modules/sets/stringSet.js:8:15)
at typeCheck (/home/trgwii/.node_modules/sets/stringSet.js:28:7)
at typeCheckStrings (/home/trgwii/.node_modules/sets/stringSet.js:16:5)
at StringSet.add (/home/trgwii/.node_modules/sets/stringSet.js:85:7)

Message permanent page

— 

> set.add("123233")
TypeError: Parameter 1 must be of type String.
-snip-
> set.add("hello")
{ h: { '5': [ 'hello' ] } }
{ h: 1, e: 1, l: 2, o: 1 }

— Lol, it actually errors here as well

— All of them should

— I am getting it too

— I COULD make the random stuff look like strings only

— Nah you're good, give me a moment

— The value is undefined when it throws

— Huh

— The for loop goes too far, oops

— I omitted parameters.length so it was just comparing the integer to the actual array

— Little typo