Skip to content

Drop locales & message from resolvedOptions()#63

Merged
eemeli merged 2 commits intomainfrom
res-opts
May 6, 2024
Merged

Drop locales & message from resolvedOptions()#63
eemeli merged 2 commits intomainfrom
res-opts

Conversation

@eemeli
Copy link
Copy Markdown
Member

@eemeli eemeli commented May 6, 2024

Closes #53
Closes #55
Replaces #57

@eemeli eemeli requested a review from ryzokuken May 6, 2024 06:45
Copy link
Copy Markdown
Member

@ryzokuken ryzokuken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one comment inline.

Comment on lines +901 to +902
1. Let _locales_ be CreateArrayFromList(_ctx_.[[MessageFormat]].[[RequestedLocales]]).
1. Perform ! CreateDataPropertyOrThrow(_funcCtx_, *"locale"*, _locales_).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason for breaking this line up? FWIW I don't mind either way, just curious.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that previously we didn't have a CreateArrayFromList() call here; that was due to the bug noted in #52. So I added it here to also ensure that each time we're passing in a new array to the called function, which previously would've been available for use as a communication channel.

As for splitting up the line, it just got a bit too long for comfort when including the call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants