Skip to content

Commit 6ab0f32

Browse files
committed
[GR-26907] Fix rendering issue on Nashorn Migration Guide page.
PullRequest: js/1754
2 parents fe4754a + 4afdb56 commit 6ab0f32

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/user/JavaScriptCompatibility.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ If you run in the JVM mode (the `--jvm` flag is used), you do not need to specif
3434

3535
Once you activate the Internationalization API, you can use the following built-ins:
3636

37-
- Intl.NumberFormat
38-
- Intl.DateTimeFormat
39-
- Intl.Collator
40-
- Intl.PluralRules
37+
- `Intl.NumberFormat`
38+
- `Intl.DateTimeFormat`
39+
- `Intl.Collator`
40+
- `Intl.PluralRules`
4141

4242
The functionality of a few other built-ins is then also updated according to the specification linked above.
4343

@@ -58,6 +58,7 @@ Note that the behavior of such methods might not strictly match the semantics of
5858
### Language Features
5959

6060
#### Conditional Catch Clauses
61+
6162
GraalVM JavaScript supports conditional catch clauses if the `js.syntax-extensions` option is enabled:
6263

6364
```js

docs/user/NashornMigrationGuide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import org.graalvm.polyglot.Context;
4242
try (Context context = Context.newBuilder().allowExperimentalOptions(true).option("js.nashorn-compat", "true").build()) {
4343
context.eval("js", "print(__LINE__)");
4444
}
45+
```
4546

4647
3. by using a system property when starting a Java application (remember to enable `allowExperimentalOptions` on the `Context.Builder` in your application as well):
4748
```shell

0 commit comments

Comments
 (0)