mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move RegisterBindings::RegisterProxyHandlers call into script::init
closes #7336
This commit is contained in:
parent
524b02dbf7
commit
77e8d3071c
2 changed files with 6 additions and 5 deletions
|
@ -98,6 +98,8 @@ mod devtools;
|
|||
mod horribly_inefficient_timers;
|
||||
mod webdriver_handlers;
|
||||
|
||||
use dom::bindings::codegen::RegisterBindings;
|
||||
|
||||
#[cfg(target_os="linux")]
|
||||
#[allow(unsafe_code)]
|
||||
fn perform_platform_specific_initialization() {
|
||||
|
@ -123,5 +125,9 @@ pub fn init() {
|
|||
assert_eq!(js::jsapi::JS_Init(), 1);
|
||||
}
|
||||
|
||||
// Create the global vtables used by the (generated) DOM
|
||||
// bindings to implement JS proxies.
|
||||
RegisterBindings::RegisterProxyHandlers();
|
||||
|
||||
perform_platform_specific_initialization();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue