]> code.delx.au - gnu-emacs-elpa/blobdiff - tests/parser.el
Fix parsing of let expressions
[gnu-emacs-elpa] / tests / parser.el
index 389d686d6f110c972b69f322c77ec13da271af97..37d9afac339eb69a1b71fa72bd01916da2182bae 100644 (file)
@@ -121,6 +121,9 @@ the test."
 (js2-deftest-parse for-with-in-operator-in-cond
   "for (var y = 1 ? 0 in [] : false in {}) {\n}")
 
+(js2-deftest-parse let-expression
+  "(let (x = 42) x);")
+
 ;;; Callers of `js2-valid-prop-name-token'
 
 (js2-deftest-parse parse-property-access-when-not-keyword