Skip to content

Cannot capture not invokable method error #36

Closed

Description

@falsandtru
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())',
    ...
}));

Activity

  1. twada commented on Dec 24, 2015

    @twada
    Member

    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!

  2. falsandtru commented on Dec 24, 2015

    @falsandtru
    ContributorAuthor

    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.

  3. twada commented on Dec 24, 2015

    @twada
    Member

    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..

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions