branch: master commit cb8607ce35fd6fbcc9196274873139401715549e Author: Lele Gaifax <l...@metapensiero.it> Commit: Lele Gaifax <l...@metapensiero.it>
Add failing test for issue #420 --- tests/parser.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/parser.el b/tests/parser.el index 181e741..c81ac0b 100644 --- a/tests/parser.el +++ b/tests/parser.el @@ -1255,6 +1255,10 @@ the test." "function foo() { let {a, b, c = 3} = {a: 1, b: 2}; }" '("foo@10:U" "a@23:U" "b@26:U" "c@29:U")) +(js2-deftest-classify-variables destructure-object-missing + "function foo() { let {foo: missing = 10} = {}; }" + '("foo@10:U" "missing@28:U")) + ;; Side effects (js2-deftest no-side-effects-at-top-level