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

How to retrieve ecmascript function code as a string? #1647

Open
Sarodh opened this issue Jul 31, 2017 · 1 comment
Open

How to retrieve ecmascript function code as a string? #1647

Sarodh opened this issue Jul 31, 2017 · 1 comment

Comments

@Sarodh
Copy link

Sarodh commented Jul 31, 2017

toString on a function only returns "function () { [ecmascript code] }". Is there anyway to retrieve the actual function as a string?

@fatcerberus
Copy link
Contributor

Returning function source code from Function#toString() is not currently implemented. There is a plan to implement it eventually, see #1147.

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