You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Ben Weidig (Jira)" <ji...@apache.org> on 2021/09/12 13:05:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Ben Weidig updated TAP5-2691:
-----------------------------
    Description: 
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.

  was:
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


        Summary: Update/Replace Rhino to latest and add possibility to configure  (was: Update Rhino to latest and add possibility to configure)

> 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)