Skip to content

Commit

Permalink
[Flight] Encode the name of a function as an object property (faceboo…
Browse files Browse the repository at this point in the history
…k#30325)

Unfortunately, Firefox doesn't include the name of a function in stack
traces if you set it as either `.name` or `.displayName` at runtime.
Only if you include it declarative.

We also can't include it into a named function expression because not
all possible names are expressible declaratively. E.g. spaces or
punctuations.

However, we can express any name if it's an object property and since
object properties now give their name declarative to the function
defined inside of them, we can declaratively express any name this way.
  • Loading branch information
felixshiftellecon committed Jul 24, 2024
1 parent 8b08e99 commit eadce90
Show file tree
Hide file tree
Showing 2 changed files with 581 additions and 540 deletions.
Loading

0 comments on commit eadce90

Please sign in to comment.