daniel3735928559/guppy

Defining a prototype on "Array" breaks Symbols loading

Opened this issue · 2 comments

The problem is here:

for(var v in syms[s].values){

at this point "values" is an Array, so every function declared as a prototype on the "Array" type will be iterated and called.

This should be protected with "hasOwnProperty"

It should just be for(var v of syms[s].values)

It should just be for(var v of syms[s].values)

What do you mean?