Is RefasterJS still supported

68 views
Skip to first unread message

Stanimir Mladenov

unread,
Oct 6, 2020, 12:50:35 AM10/6/20
to Closure Compiler Discuss
Once I used RefasterJS to refactor some javascript code and it seemed useful. Now I tried with ES6 code and it failed. Looking in the command line help, there is no way to pass arguments for LANGUAGE_IN or anything extra for the ast parser. Somewhere in the group was mentioned a conformance app, that I thought was based on RefasterJS.

Does anybody use RefasterJS with modern code?

rish...@google.com

unread,
Oct 7, 2020, 3:18:33 AM10/7/20
to Closure Compiler Discuss
By "failed" do you mean that it failed to match certain ES6 patterns for refactoring, or did it crash? Can you share the details/repro of the failure? 

Links that might be useful:

Stanimir Mladenov

unread,
Oct 7, 2020, 11:39:15 AM10/7/20
to Closure Compiler Discuss
I did receive compiler errors before. With the RefasterJS debugger that you linked, I do not get them now, so everything works there.
The problem was that the latest version of the refasterjs jar file was very old (since 2015), when downloaded from this link http://dl.google.com/closure-compiler/refasterjs/refasterjs-latest.zip extracted from the documentation.
Looking in the BUILD files for bazel, refasterjs java binary target was not available. Any way to build or download precompiled binary?

Bradford Smith

unread,
Oct 8, 2020, 1:24:21 PM10/8/20
to Closure Compiler Discuss
Thanks a lot for bringing this to our attention.

Sadly, the answer to your question is "No, we don't support RefasterJS anymore."
It's not good for us to have not-really-supported code in our repository, so I've filed this issue with further explanation and a checklist of cleanup tasks.

https://github.com/google/closure-compiler/issues/3702

There have been lots of changes to JS since 2015, so it's really not surprising that a RefasterJS binary built back then doesn't work on today's code.
Sorry you tripped over this.
We really appreciate you taking the time to let us know about it.

Best regards,
Bradford
Reply all
Reply to author
Forward
0 new messages