-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hack] Modify function reference arg only when needed
Summary: When `$f(...)` is invoked, we modify the receiver as, ``` lateBinding($f, ...) ===> lateBinding($f.this, ...) ``` to pass a proper function reference to `lateBinding`. However, this modification was applied unconditionally, e.g. ``` hhbc_new_vec($f, ...) ===> hhbc_new_vec($f.this, ...) ``` which introduced a wrong abstract semantics. This diff changed it to modify the receiver only when the method name is `lateBinding`. Reviewed By: geralt-encore Differential Revision: D66235651 Privacy Context Container: L1208441 fbshipit-source-id: 90ccfd77be393af2f1226e1da76246ab22541fc5
- Loading branch information
1 parent
f8c763e
commit 92b31a1
Showing
4 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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