aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceobserver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/performanceobserver.rs')
-rw-r--r--components/script/dom/performanceobserver.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/dom/performanceobserver.rs b/components/script/dom/performanceobserver.rs
index 339941ffbf6..f6d83d496dd 100644
--- a/components/script/dom/performanceobserver.rs
+++ b/components/script/dom/performanceobserver.rs
@@ -6,8 +6,7 @@ use std::cell::Cell;
use std::rc::Rc;
use dom_struct::dom_struct;
-use js::jsval::JSVal;
-use js::rust::HandleObject;
+use js::rust::{HandleObject, MutableHandleValue};
use crate::dom::bindings::callback::ExceptionHandling;
use crate::dom::bindings::cell::DomRefCell;
@@ -137,10 +136,10 @@ impl PerformanceObserverMethods for PerformanceObserver {
}
// https://w3c.github.io/performance-timeline/#supportedentrytypes-attribute
- fn SupportedEntryTypes(cx: JSContext, global: &GlobalScope) -> JSVal {
+ fn SupportedEntryTypes(cx: JSContext, global: &GlobalScope, retval: MutableHandleValue) {
// While this is exposed through a method of PerformanceObserver,
// it is specified as associated with the global scope.
- global.supported_performance_entry_types(cx)
+ global.supported_performance_entry_types(cx, retval)
}
// https://w3c.github.io/performance-timeline/#dom-performanceobserver-observe()