]> code.delx.au - gnu-emacs-elpa/blobdiff - tests/parser.el
Fix async parsing
[gnu-emacs-elpa] / tests / parser.el
index 520ff45d19fc6d567fb9166d56daf5c7ba1d4cb6..b3c362053d92e55927d3e76e1e0bc1603d4cc769 100644 (file)
@@ -487,6 +487,12 @@ the test."
 
 ;;; 'async' and 'await' are contextual keywords
 
+(js2-deftest-parse async-can-be-name
+  "void async;")
+
+(js2-deftest-parse async-can-be-object-name
+  "async.z;")
+
 (js2-deftest-parse async-can-be-var-name
   "var async = 3;")