Guest User

Untitled

a guest
Mar 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. var obj = {
  2. x: 0,
  3. y: function foo() {
  4. this.x = "bar";
  5.  
  6. function hej() { // ƒ hej() [[Scopes]][0]: Closure (foo) -> ƒ hej() [[Scopes]][0]: Closure (foo) -> ƒ hej() [[Scopes]][0]: Closure (foo) -> ƒ hej() [[Scopes]][0]: Closure (foo) .......
  7. this.x = "foo";
  8. console.dir(hej);
  9. }
  10. this.z(hej);
  11. },
  12. z: function bam(func) {
  13. func.call(this);
  14. }
  15. };
  16. obj.y();
Add Comment
Please, Sign In to add comment