Guest User

Untitled

a guest
Dec 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. queryObjects(WebSocket);
  2. /*
  3. If the above returns an empty array...
  4. ...try executing `new WebSocket('wss://url')` beforehand
  5. */
  6.  
  7. // Discover all Promise objects
  8. queryObjects(Promise);
  9.  
  10. // Also works with user-defined constructors
  11. class Person {};
  12. new Person();
  13. queryObjects(Person);
Add Comment
Please, Sign In to add comment