SQLite null prototype
Hi,
SQLite returns [Object: null prototype] as it's not an object. What is the ideal way of dealing with this?
1 Reply
An object with its prototype set to
null
is still an object. Setting the prototype to null is a common pattern in runtimes to prevent badly written polyfills from messing with return values of functions. Because the prototype is terminated, there is no fallback lookup into the global Object
when a property doesn't exist.
What is the ideal way of dealing with this?Just continue using it as you normally would. If you're running into any problems, please share