]> code.delx.au - gnu-emacs-elpa/blobdiff - tests/parser.el
Merge branch 'dgreensp-object-rest-spread'
[gnu-emacs-elpa] / tests / parser.el
index b546c1cff0a4462e2dcf8d516a8200a65485458c..9667e566067986b9484abd1dda5480ec919f5f71 100644 (file)
@@ -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