You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/14 06:41:00 UTC

[jira] [Commented] (TAP5-2691) Update/Replace Rhino to latest and add possibility to configure

    [ https://issues.apache.org/jira/browse/TAP5-2691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414755#comment-17414755 ] 

ASF subversion and git services commented on TAP5-2691:
-------------------------------------------------------

Commit aa5b789c4b65a6310fbbd274bda33adfde9215f8 in tapestry-5's branch refs/heads/master from Benjamin Weidig
[ https://gitbox.apache.org/repos/asf?p=tapestry-5.git;h=aa5b789 ]

webresources: un-ignored TypeScriptCompilerSpec

The TypeScriptCompilerSpec was ignored because it used Tapestry to build itself, and there were some Spock issues.
To get it working, the TypeScriptCompiler is now build manually.

A test for TAP5-2691 (Rhino problems) was added. It succeeds on my machine, but maybe not on others. As long as the issue isn't actively worked on, the test is ignored.

> Update/Replace Rhino to latest and add possibility to configure
> ---------------------------------------------------------------
>
>                 Key: TAP5-2691
>                 URL: https://issues.apache.org/jira/browse/TAP5-2691
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-webresources
>    Affects Versions: 5.7.3
>            Reporter: Ben Weidig
>            Assignee: Ben Weidig
>            Priority: Minor
>
> Rhino has some issues with TypeScript due to typescript.ts using reserved keywords as property names (which is fine in ES6).
> The latest version might work better, but the Context must be set to Context.VERSION_ES6.
> Maybe there should be an option to configure Rhino, just like GoogleClosureMinimizerOptionsProvider
> See http://mail-archives.apache.org/mod_mbox/tapestry-users/202109.mbox/%3C004b01d79eff%2431250dc0%24936f2940%24%40albourne.com%3E
> Related GitHub issues:
> https://github.com/mozilla/rhino/issues/658
> https://github.com/mozilla/rhino/issues/430
> Update 2021-09-12:
> David Taylor mentioned GraalVM as an alternative on the mailing list.
> It's fully ECMAScript compatible and should be easy to integrate.
> So far, only the Coffeescript and TypeScriptCompiler are using Rhino, and it's an internal package.
> But GraalVM JS is 9x the size of Rhino.
> Next steps should be a proof-of-concept, and discussion on the dev-list.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)