]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/js2-mode/tests/parser.el
Merge commit '5c9d8b82dddec2fab370ec8798569c7fc5698093' from js2-mode
[gnu-emacs-elpa] / packages / js2-mode / tests / parser.el
index bfc5653cb073e96d46c493ebb3e7534275a34073..dc8c001cac36fb209ee02ff6ba4c0ab51cd9527d 100644 (file)
@@ -226,12 +226,10 @@ the test."
   "function foo(a = 1, b = a + 1) {\n}")
 
 (js2-deftest-parse function-with-no-default-after-default
-  "function foo(a = 1, b) {\n}"
-  :syntax-error "b")
+  "function foo(a = 1, b) {\n}")
 
 (js2-deftest-parse function-with-destruct-after-default
-  "function foo(a = 1, {b, c}) {\n}"
-  :syntax-error "{")
+  "function foo(a = 1, {b, c}) {\n}")
 
 (js2-deftest-parse function-with-rest-parameter
   "function foo(a, b, ...rest) {\n}")