mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Remove Servo window.trap()
extension (#30743)
This Servo-specific extension is unused by any code in the repository and removing it allows us to remove use of nightly only reliance on rust intrinsics. This is a step toward supporting stable rust.
This commit is contained in:
parent
378fdbe225
commit
50732b49c5
3 changed files with 0 additions and 8 deletions
|
@ -141,8 +141,6 @@ partial interface Window {
|
||||||
[Pref="dom.servo_helpers.enabled"]
|
[Pref="dom.servo_helpers.enabled"]
|
||||||
undefined gc();
|
undefined gc();
|
||||||
[Pref="dom.servo_helpers.enabled"]
|
[Pref="dom.servo_helpers.enabled"]
|
||||||
undefined trap();
|
|
||||||
[Pref="dom.servo_helpers.enabled"]
|
|
||||||
undefined js_backtrace();
|
undefined js_backtrace();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1102,11 +1102,6 @@ impl WindowMethods for Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
|
||||||
fn Trap(&self) {
|
|
||||||
unsafe { ::std::intrinsics::breakpoint() }
|
|
||||||
}
|
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
fn Js_backtrace(&self) {
|
fn Js_backtrace(&self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#![feature(core_intrinsics)]
|
|
||||||
#![feature(drain_filter)]
|
#![feature(drain_filter)]
|
||||||
#![feature(once_cell)]
|
#![feature(once_cell)]
|
||||||
#![feature(plugin)]
|
#![feature(plugin)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue