mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Auto merge of #11553 - Ms2ger:init, r=nox
Remove spurious JS_Init call. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] We don't run debug-mozjs tests Runtime::new() will call JS_Init a second time, leading to an assertion. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11553) <!-- Reviewable:end -->
This commit is contained in:
commit
d191a47547
1 changed files with 0 additions and 1 deletions
|
@ -158,7 +158,6 @@ fn perform_platform_specific_initialization() {}
|
|||
#[allow(unsafe_code)]
|
||||
pub fn init() {
|
||||
unsafe {
|
||||
assert_eq!(js::jsapi::JS_Init(), true);
|
||||
SetDOMProxyInformation(ptr::null(), 0, Some(script_thread::shadow_check_callback));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue