Invoking Rhino from JavaScript - version compatibility

The following question is on behalf of a user who asked this on the JavaScript policy reference page of the doc site:

The Javascript policy describes how to use Javascript in Edge, while other documentation pages indicate that currently Edge uses Rhino 1.7.7.1. This version of Rhino implements Javascript 1.7, but only if the interpreter is set to 170. (See https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/New_in_Rhino_1.7R1).

It appears that when Rhino is invoked from the Javascript policy, the interpreter is not set to 170, hence many of the Javascript 1.7 features are not available. Is there a way to set the version to 170 from the policy, or is there some other way to set this so I can use Javascript 1.7 features in Edge?

Solved Solved
0 2 614
1 ACCEPTED SOLUTION

OLD Question, NEW Answer.

Currently, There is no way to set the version to 170 from the policy, or from within the JS code.

This is an outstanding feature request. Reference: b/67167697

View solution in original post

2 REPLIES 2

Which features are missing? also, see APIRT-3286

OLD Question, NEW Answer.

Currently, There is no way to set the version to 170 from the policy, or from within the JS code.

This is an outstanding feature request. Reference: b/67167697