Guest User

Untitled

a guest
Feb 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function Importer() {
  2. // Pseudo-code, not actual implementation.
  3. this.load() = function load() {...};
  4. this.context = this.__proto__;
  5. }
  6.  
  7. var i = Importer();
  8.  
  9. i.load('foo');
  10.  
  11. assert(i.Foo);
  12.  
  13. i.load; // a function
  14. i.context.load; // 2.
Add Comment
Please, Sign In to add comment