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

feat(ecmascript): Infallible internal method variants #482

Merged
merged 2 commits into from
Dec 8, 2024

Conversation

aapoalas
Copy link
Collaborator

@aapoalas aapoalas commented Dec 8, 2024

Added infallible internal method variants; these cannot call JS or throw errors. The latter restriction is perhaps a bit too harsh and might be removed later. Allowing eg. calling of some builtins would also be cool but will need further work. Allowing calling of some JS functions would also be freaking awesome, eg. array.map(x => x.substring(5)) or array.filter(x => !x) or such would be great. The problem is of course that we'd need to know fairly deep things about the JS functions and the system in general.

After I merge this, the next step will be using these try methods in various places to try and avoid GC as far as possible.

@aapoalas aapoalas force-pushed the feat/ecmascript-try-internal-methods branch from 69b4ca2 to 83df218 Compare December 8, 2024 15:43
@aapoalas aapoalas merged commit bdbb371 into main Dec 8, 2024
1 check passed
@aapoalas aapoalas deleted the feat/ecmascript-try-internal-methods branch December 8, 2024 15:58
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

Successfully merging this pull request may close these issues.

1 participant