aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpucompilationinfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpucompilationinfo.rs')
-rw-r--r--components/script/dom/gpucompilationinfo.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/gpucompilationinfo.rs b/components/script/dom/gpucompilationinfo.rs
index ee0049260db..a54b3e81e41 100644
--- a/components/script/dom/gpucompilationinfo.rs
+++ b/components/script/dom/gpucompilationinfo.rs
@@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use dom_struct::dom_struct;
-use js::jsval::JSVal;
+use js::rust::MutableHandleValue;
use webgpu::ShaderCompilationInfo;
use super::bindings::codegen::Bindings::WebGPUBinding::GPUCompilationInfoMethods;
@@ -58,7 +58,7 @@ impl GPUCompilationInfo {
impl GPUCompilationInfoMethods for GPUCompilationInfo {
/// <https://gpuweb.github.io/gpuweb/#dom-gpucompilationinfo-messages>
- fn Messages(&self, cx: JSContext) -> JSVal {
- to_frozen_array(self.msg.as_slice(), cx)
+ fn Messages(&self, cx: JSContext, retval: MutableHandleValue) {
+ to_frozen_array(self.msg.as_slice(), cx, retval)
}
}