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

[Bug?|Question] Function name inside calleeName using callExpression #35

Open
mhaamann opened this issue Oct 23, 2019 · 1 comment
Open

Comments

@mhaamann
Copy link

When configuring the extractor to look for the following:

JsExtractors.callExpression('context.getGt().gettext')

It fails to find code defined as:

new Error(context.getGt().gettext('Hello'));

Is this supported? Or is there something I need to write to escape the parenthesis.

@lukasgeiter
Copy link
Owner

Having a function call in the calleeName is currently not supported. You might be able to work around this using a getter instead of a function call since property access is supported:

JsExtractors.callExpression('context.gt.gettext')

I'm going to leave this issue open as a feature request. I'm a bit hesitant to implement this though, because I feel like the next request would be to support function arguments as well (e.g. context.get('gt').gettext) and so on...

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

No branches or pull requests

2 participants