Skip to content

Return normal objects for args and vars.#1056

Merged
leebyron merged 1 commit into
masterfrom
args-vars-normal-objs
Oct 3, 2017
Merged

Return normal objects for args and vars.#1056
leebyron merged 1 commit into
masterfrom
args-vars-normal-objs

Conversation

@leebyron

@leebyron leebyron commented Oct 3, 2017

Copy link
Copy Markdown
Contributor

This is a follow up to #1048 which addresses an issue where flow typed resolver functions would need to be aware of the fact that arguments were prototype-less. That's something we maintain for internal usage, but is more burdensome for external use. Instead, this is just more cautious when using these values internally, using hasOwnProperty, but now returns prototypefull objects to user code.

Also follows up with a few additional conversions to ObjMap, such that the only remaining uses of {[string]: mixed} are for variables and arguments.

This is a follow up to #1048 which addresses an issue where flow typed resolver functions would need to be aware of the fact that arguments were prototype-less. That's something we maintain for internal usage, but is more burdensome for external use. Instead, this is just more cautious when using these values internally, using hasOwnProperty, but now returns prototypefull objects to user code.

Also follows up with a few additional conversions to ObjMap, such that the only remaining uses of `{[string]: mixed}` are for variables and arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants