Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot capture not invokable method error #36

Closed
falsandtru opened this issue Dec 21, 2015 · 3 comments
Closed

Cannot capture not invokable method error #36

falsandtru opened this issue Dec 21, 2015 · 3 comments

Comments

@falsandtru
Copy link
Contributor

var o = {};
assert(o.m());
TypeError: assert._capt(...).m is not a function
var o = {};
assert(assert._expr(assert._capt(assert._capt(o, 'arguments/0/callee/object').m(), 'arguments/0'), {
    content: 'assert(o.m())',
    ...
}));
@twada
Copy link
Member

twada commented Dec 24, 2015

Thank you for reporting!

It's hard to fix...

I tried enclosing capture logic in function calls.
It seem to be a solution for me, but it does not work since it changes contextual semantics and dynamics around asynchronous nature, such as async/await.
I learned that I should not enclose original calls in extra function.

So, it's a wontfix issue for now and I should note this in FAQ section. Thanks!

@falsandtru
Copy link
Contributor Author

Alright, please close this issue when you noted this in FAQ. If possible, please hide internal codes. I didn't understand what that meant. Thanks.

@twada
Copy link
Member

twada commented Dec 24, 2015

Alright, please close this issue when you noted this in FAQ

Yes I'm going to. Thank you!

If possible, please hide internal codes. I didn't understand what that meant.

I absolutely agree with you..

@twada twada closed this as completed in cc136ce Dec 27, 2015
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

No branches or pull requests

2 participants