Skip to content

Commit

Permalink
JavaScript,Units: add a case describing TODO items in object destruct…
Browse files Browse the repository at this point in the history
…ing (#3435)

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Dec 30, 2024
1 parent 1761ee1 commit b719aec
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--sort=no
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// See #3435.
// f should be tagged with function kind.
let [f] = [function() {}];
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// See #3435.
// If an object literal is specified as a default value in object restructuring,
// the parser may fail to extract the variable (or constant):
var{ c = {a: 1} } = { c: undefined };
var{ d = {a: 1} } = {d: 3};
var a = 1
var [x = {a: 2}, y] = [, 4];
var [x = [a, 2], z] = [, 4];
var { 'alpha': q = {'x': 9} } = {'alpha': 3};

0 comments on commit b719aec

Please sign in to comment.