Anyone know how I can enumerate all the JS API functions / properties defined in the scripting environment?
I can check for existence of one using something like this:
Code: Select all
if (!!chat) console("yay, we can chat");
"for (i in this)" on the global scope just tells me what's in the global object. Likewise (just incase you were about to mention the enumerable flag) "Object.getOwnPropertyNames(this)" on the global scope doesn't list any of the JS API stuff either.
Any ideas?

