X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/ae3ed936b7ae72a6e726a3701107edb7fe67b8ce..58857dc01d4de5196f39f02afd12151ac4d0d349:/tests/parser.el diff --git a/tests/parser.el b/tests/parser.el index b546c1cff..9667e5660 100644 --- a/tests/parser.el +++ b/tests/parser.el @@ -390,6 +390,12 @@ the test." (js2-deftest-parse array-destructure-expr-default "let [[x] = [3]] = y;") +(js2-deftest-parse spread-in-object-literal + "f({x, y, ...z});") + +(js2-deftest-parse rest-in-object-literal + "const {x, y, ...z} = f();") + ;;; Arrow functions (js2-deftest-parse arrow-function-with-empty-args-and-no-curlies