2 ms·
Is there a way to see what hidden class an object has? For instance, if an array of objects is parsed from json, were all the objects assigned the same hidden c
by btown 9y ago
Is there a way to see what hidden class an object has? For instance, if an array of objects is parsed from json, were all the objects assigned the same hidden class? Alternately, can one obtain statistics about hidden class usage? Seems like this would be very helpful for real world apps, especially given the prevalence of data intensive Electron apps.
EDIT: https://www.npmjs.com/package/v8-natives https://www.npmjs.com/package/v8-natives haveSameMap seems to do exactly this!