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

yield1/yieldX: Use $$arity if available. #2547

Closed
wants to merge 1 commit into from
Closed

Conversation

hmdne
Copy link
Member

@hmdne hmdne commented Jun 5, 2023

The rationale behind this is that JavaScript compressors can sometimes reduce a number of function arguments therefore changing block.length.

This is important for yield1/yieldX, because it changes block call semantics.

This fixes #2525

The rationale behind this is that JavaScript compressors can sometimes
reduce a number of function arguments therefore changing `block.length`.

This is important for yield1/yieldX, because it changes block call
semantics.

This fixes #2525

Co-authored-by: catmando <mitch@catprint.com>
@hmdne
Copy link
Member Author

hmdne commented Jun 5, 2023

This is unfortunately incorrect.

@hmdne hmdne closed this Jun 5, 2023
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.

don't use javascript block.length to determine number of arguments in block definition
1 participant