servo / book

The Servo Book
https://book.servo.org
17 stars 14 forks source link

Document necessary preferences for running on HarmonyOS NEXT #35

Open jschwe opened 4 hours ago

jschwe commented 4 hours ago

On HarmonyOS NEXT JIT is forbidden by the system policy, so one needs to disable JIT in the servo preferences. In the future we could perhaps during startup check in servo / the embedder if JIT is possible and disable JIT based on the result of those checks, but for now it is sufficient to document the required preferences.

prefs.json:

  "js.disable_jit": true,
sagudev commented 4 hours ago

Isn't js.disable_jit enough? I think it disables JIT globally so other options should be nop.

jschwe commented 3 hours ago

Thanks! Indeed just js.disable_jit is enough. I'm not sure why it didn't work the first time I tried - maybe I forgot to rebuild or something...