Title basically. I want to know all the objects I can make with new in chrome - which are specific to Chrome/Chromium. For example:
new MessageChannel();
new TextEncoderStream();
new EyeDropper();
Is there a list of these methods somewhere?
Since these are properties of window
, you can try something like this:
names = []
for (let k of Object.getOwnPropertyNames(window)) {
let v;
try {
v = window[k]
} catch (e) {
}
if (k.match(/^[A-Z]/) && typeof v === 'function')
names.push(k)
}
console.log(names.sort())
It doesn't tell whether these functions are really constructors though.