Repository navigation
[TS] Add an isolated Function.bind experiment - #693
Draft
CaelmBleidd wants to merge 1 commit into
Draft
CaelmBleidd wants to merge 1 commit into
CaelmBleidd wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a standalone bind experiment based on the public head of #648. The runner creates a fresh checkout and applies the prototype patch there. The four files are outside the normal build source sets.
The focused checks compare actual USVM and Node returns for bound arguments and receiver, rebinding, a lexical arrow, distinct bound functions, and a project-defined method named
bind. The expected values are 30, 123, 34, true, and 201. With the model disabled, the ordinary bind call reaches the configured fallback. The project method still returns 201.An earlier trace on unchanged
RedBlackTreerecorded 52 residual bind calls and zero model applications. The experiment covers direct calls of known bound functions. Bound constructor calls,.call,.apply, and reflective properties remain outside that checked contract.Both focused Gradle tests passed on public base
7e74b8061fd86d69b7bc22d8a5e2b535e6e2c6adwith JDK 21, Node.js 26.5.0, and JacoDB4251d2023d.