Add a test for #211.

Closes #211.
This commit is contained in:
강동윤 2019-02-14 21:17:01 +09:00
parent 9bd7a9c484
commit 34fff56462
2 changed files with 10 additions and 1 deletions

View File

@ -89,4 +89,13 @@ obj["var"] = "isKeyword";"#
"const number = foo[bar1][baz1]",
"const number = foo[bar1][baz1]"
);
test!(
::swc_ecma_parser::Syntax::default(),
|_| MemberExprLit,
issue_211,
"_query[idx]=$this.attr('data-ref');",
"_query[idx]=$this.attr('data-ref');"
);
}

View File

@ -1,6 +1,6 @@
use crate::{
pass::Pass,
util::{ExprExt, ExprFactory, State},
util::{ExprFactory, State},
};
use ast::*;
use swc_common::{