While reading Processional JavaScript for Web Developers 4th edition, I found the saying:
When defining an object via object literal notation, the Object constructor is never actually called.
But if the object literal isn't created through Object constructor, how can it access the property of Object.prototype?
Like this:
Object.prototype.a = 1
let obj = {}
console.log(obj.a) // 1
Or can anyone tell me how the conclusion given by the book come out? I didn't find anything about this in ECMAScript specification.