branch: master
commit 7e0b11f58f628d55228f521c45e0c1c391970292
Author: Jackson Hamilton <[email protected]>
Commit: Jackson Hamilton <[email protected]>
Add tests for of parsing
---
tests/parser.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/parser.el b/tests/parser.el
index 2111671..d32f042 100644
--- a/tests/parser.el
+++ b/tests/parser.el
@@ -161,6 +161,12 @@ the test."
(js2-deftest-parse parse-for-of
"for (var a of []) {\n}")
+(js2-deftest-parse of-can-be-name
+ "void of;")
+
+(js2-deftest-parse of-can-be-object-name
+ "of.z;")
+
(js2-deftest-parse of-can-be-var-name
"var of = 3;")