-
Notifications
You must be signed in to change notification settings - Fork 570
Ability to call overridden functions from the std library #1216
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
Conversation
Before this commit, every overriden standard library function was renamed '_'. Now, if there is the following directive in the function comment: "//gopherjs:keep_overridden", they are prefixed with "_gopherjs_overridden_" so that they can be called from the overriding function. This is typically useful to use the standard library implementation as a fallback.
Before this commit, TestOnePassCutoff was skipped because a 'Maximum call stack size exceeded' message may occur. Now we use gopherjs:keep_overridden to try the original test, and skip only if the original test failed.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
One last bikeshed on this one... Now that we've settled on _gopherjs_overridden_TestOnePassCutoff(t) Do we want this? _gopherjs_original_TestOnePassCutoff(t) |
This comment has been minimized.
This comment has been minimized.
I don't feel too strongly, but seems like a good idea. |
Reference app: jQuery TodoMVC (
#outputSize |
Thanks @r-l-x for creating this original PR. I'm glad to see it finally merged! |
Rebase of #798, and applied change suggested in #798 (comment), and a couple cleanups.