Skip to content

Conversation

@ianwremmel
Copy link

According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee, arguments.callee has been deprecated and can't be optimized at runtime. Named function expressions should get around this problem.

lib/checks.js Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't want to start the stack trace from the typeCheck function, but from the closure returned from calling the function.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right. glad you caught that.

@ianwremmel
Copy link
Author

Well, my day job got a little distracting, but I've finally updated this PR. Looks like there's a problem with one of the test dependencies in node 0.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants