Skip to content

Commit

Permalink
Update base for Update on "[compiler] Track refs through object expre…
Browse files Browse the repository at this point in the history
…ssions and property lookups"

Summary:
This addresses the issue of the compiler being overly restrictive about refs escaping into object expressions. Rather than erroring whenever a ref flows into an object, we will now treat the object itself as a ref, and apply the same escape rules to it. Whenever we look up a property from a ref value, we now don't know whether that value is itself a ref or a ref value, so we assume it's both.

The same logic applies to ref-accessing functions--if such a function is stored in an object, we'll propagate that property to the object itself and any properties looked up from it.

[ghstack-poisoned]
  • Loading branch information
mvitousek committed Aug 27, 2024
2 parents e8fcaea + f90a6bc commit e09c8a7
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 349 deletions.
Loading

0 comments on commit e09c8a7

Please sign in to comment.