diff options
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r-- | components/script/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs index 6836895d5e7..8f693f7782d 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -72,3 +72,10 @@ pub mod clipboard_provider; mod devtools; mod horribly_inefficient_timers; mod webdriver_handlers; + +#[allow(unsafe_code)] +pub fn init() { + unsafe { + js::jsapi::JS_Init(); + } +} |