avoid arguments.callee, implement self-calling constructor #1

wants to merge 4 commits into


None yet

1 participant

Mithgol commented May 27, 2012

As MDN docs say, arguments.callee is expensive, and forbidden in ECMAScript 5 strict mode, and should be avoided in favour of the function's name unless it's anonymous.

Ease of use would also benefit from using John Resig's self-calling constructor interface, so that new jParser(view, structure) works exactly like jParser(view, structure) and new may be omitted if the module's user likes it that way.

@Mithgol Mithgol referenced this pull request in jDataView/jDataView Jun 30, 2012

Fix for #16 and a few bonus changes #17

@Mithgol Mithgol referenced this pull request in jDataView/jDataView Aug 8, 2012

No intrinsic endianness #24

Mithgol commented Sep 27, 2013

This pull request has a lot of bit rot now.


@Mithgol Mithgol closed this Sep 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment