]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/js2-mode/tests/parser.el
Merge commit 'f9e686861765162a9a6373a936c1a72359e7bf4b'
[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}")