Update mozjs and enable 'init_once' feature for Android

This commit is contained in:
Paul Rouget 2018-11-19 09:11:54 +01:00
parent 63a96a5d37
commit d27cfb3ee9
3 changed files with 16 additions and 6 deletions

View file

@ -63,7 +63,6 @@ hyper_serde = "0.9"
image = "0.20"
ipc-channel = "0.11"
itertools = "0.7.6"
js = {package = "mozjs", version = "0.9.4"}
jstraceable_derive = {path = "../jstraceable_derive"}
keyboard-types = "0.4.3"
lazy_static = "1"
@ -115,3 +114,9 @@ webvr_traits = {path = "../webvr_traits"}
[target.'cfg(not(target_os = "ios"))'.dependencies]
mozangle = "0.1"
[target.'cfg(target_os = "android")'.dependencies]
js = {package = "mozjs", version = "0.9.5", features=["init_once"]}
[target.'cfg(not(target_os = "android"))'.dependencies]
js = {package = "mozjs", version = "0.9.5"}