I would like to be able to observe when a global object gets created.
I was hoping to do something with JavaScript Proxy.
let objectA = undefined;
... Proxy code here
A little while later...
objectA = { prop1: 'hello', prop2: 'world' }
... proxy code gets called here... console.log(objectA)
classor a function with a constructor, you can use theconstructtrap.