-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(vm): Refactor simple object patterns (#398)
This patch prepares object patterns to be split into simple and complex similarly to array patterns (see #394), where complex patterns (having either initializers or computed property keys) would be transpiled into regular bytecode. Since only a subset of simple object patterns were supported so far, this patch refines the compilation to only use two binding properties, `BindingPatternBind` and `BindingPatternBindNamed`. In the future, rest bindings will also be supported. Despite being a refactoring, this patch makes certain tests pass due to bugs in the original implementation of object patterns.
- Loading branch information
1 parent
780b05c
commit 15c8e2d
Showing
6 changed files
with
108 additions
and
341 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
Oops, something went wrong.