Skip to content

Instantly share code, notes, and snippets.

@jdalton jdalton/call-inlining-after.js Secret
Created Sep 25, 2014

Embed
What would you like to do?
/* INLINED CODE */
function doSomething(x, y) {
// o1.add called with o2 as
// its `this` binding.
return o1.add(x, y);
}
@arty-name

This comment has been minimized.

Copy link

commented Oct 11, 2014

Shouldn't it be o2.add(x, y) here? ;)

@jdalton

This comment has been minimized.

Copy link
Owner Author

commented Oct 16, 2014

We wanted to avoid saying o2.add as that implies the add method of o2.
This is why the code comment states that it's o1.add called with o2 as its this binding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.