Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Rename __registerAdditionalFunction -> __optimize #1561

Closed
wants to merge 1 commit into from

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Mar 9, 2018

Release notes: __registerAdditionalFunction is now __optimize

This PR renames __registerAdditionalFunction to __optimize and removes all tests that use the // additional functions logic in favor of declaratively using __optimize. Also the serializer option for additionalFunctions is removed too.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@trueadm is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Mar 10, 2018
Summary:
Release notes: none

When we evaluate multiple additional functions, they might remove other additional functions that were defined as additional functions. This causes a serializer issue. If we check if they have info from the visitor we can avoid hitting an invariant. This fixes one of the issues flagged in #1550, thus pulling in the test that was failing from the PR.

This PR is rebased on #1561
Closes #1555

Differential Revision: D7220598

Pulled By: trueadm

fbshipit-source-id: 2d0b87e23ecd93b325f44daa3a7c21ff3591d733
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants