# How do I use the V8 engine?

The V8 engine was introduced in EmEditor v22.1.0.

1. Go to **Macros | Customize…** and open the **Options** page
2. Check **Use V8 as JavaScript engine** and click **OK**

![Customize Macros Options page](/media/2022/12/Screenshot-2022-12-02-121542-1.webp)

You can also programmatically specify the engine with this line at the top of your macro:

```text
#language = "v8"
```

or

```text
#language = "JScript"
```

## JScript compatibility with V8

Method and property identifiers are case-sensitive in V8, unlike JScript. For example, if you wrote `redraw = false`, in V8 you will need to fix the case to be <code><a href="https://www.emeditor.org/en/macro_window_window_redraw.html">Redraw</a> = false</code>.

V8 does not support ActiveXObject, but for commonly used methods, you can use the [`shell`](https://www.emeditor.org/en/macro_window_shell.html) global to call the [Shell](https://www.emeditor.org/en/macro_shell_index.html) object instead.

## Web API limitations

Certain Web APIs are unavailable on V8, such as `import`, `fetch`, and DOM manipulation.
