You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rhino has support for E4X extensions, such as attribute get operator a.@b. It is parsed correctly as XmlMemberGet node, but toSource() call causes IllegalArgumentException, thrown from AstNode.operatorToString(), which is given '.' or '..' token.
Following snippet resembles this issue (default CompilerEnvirons is used):
Stringscript = "a.@b;";
Parserparser = newParser(environment);
AstRootroot = parser.parse(script, null, 1);
/* up to 1.7.9 following will throw IllegalArgumentException */root.toSource();
I have prepared a pull request, it will be opened right after this issue is created.
The text was updated successfully, but these errors were encountered:
kuzjka
added a commit
to kuzjka/rhino
that referenced
this issue
Oct 10, 2018
Rhino has support for E4X extensions, such as attribute get operator
a.@b
. It is parsed correctly asXmlMemberGet
node, buttoSource()
call causesIllegalArgumentException
, thrown fromAstNode.operatorToString()
, which is given '.' or '..' token.Following snippet resembles this issue (default CompilerEnvirons is used):
I have prepared a pull request, it will be opened right after this issue is created.
The text was updated successfully, but these errors were encountered: