Closed stevage closed 1 year ago
The objects.create() is used incorrectly.
Object.create(proto, propertiesObject)
Norice that there are TWO parameters! One is the prototype to copy, i.e. the shape of the object,methods, etc. The other is the values of the properties.
Well, it's not incorrect to not pass a second parameter. But there is just no reason to use Object.create()
at all here, as prototypes aren't being used afaik.
Thanks!
There's another instance of Object.create() in tables.js that looks suspicious to me, but removing it breaks tests, so I left it.