Skip to content

Commit

Permalink
[Flight] Warn if this argument is passed to .bind of a Server Referen…
Browse files Browse the repository at this point in the history
…ce (#28380)

This won't ever be serialized and is likely just a mistake.

This should be covered by the "use server" compiler since it ensures
that something that accepts a "this" won't be allowed to compile and if
it doesn't accept it, TypeScript should ideally forbid it to be passed.

So maybe this is unnecessary.

DiffTrain build for [65a0e2b](65a0e2b)
  • Loading branch information
sebmarkbage committed Feb 19, 2024
1 parent 94683ff commit c456912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9444c51c7e44936c24e1f44db905cfd45c51cff3
65a0e2b25ec4642f83c32d7599b5252c3955a60b
1 change: 1 addition & 0 deletions compiled/facebook-www/__test_utils__/ReactAllWarnings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c456912

Please sign in to comment.