From 7e0b11f58f628d55228f521c45e0c1c391970292 Mon Sep 17 00:00:00 2001 From: Jackson Hamilton Date: Sat, 2 Jan 2016 16:13:34 -0800 Subject: [PATCH] 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 211167105..d32f0426a 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;") -- 2.39.2