@@ -84,7 +84,7 @@ extern "C" {
8484 #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
8585 pub fn destroy ( this : & GpuBuffer ) ;
8686 #[ cfg( web_sys_unstable_apis) ]
87- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
87+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
8888 #[ doc = "The `getMappedRange()` method." ]
8989 #[ doc = "" ]
9090 #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
@@ -93,9 +93,9 @@ extern "C" {
9393 #[ doc = "" ]
9494 #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
9595 #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
96- pub fn get_mapped_range ( this : & GpuBuffer ) -> :: js_sys:: ArrayBuffer ;
96+ pub fn get_mapped_range ( this : & GpuBuffer ) -> Result < :: js_sys:: ArrayBuffer , JsValue > ;
9797 #[ cfg( web_sys_unstable_apis) ]
98- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
98+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
9999 #[ doc = "The `getMappedRange()` method." ]
100100 #[ doc = "" ]
101101 #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
@@ -104,9 +104,12 @@ extern "C" {
104104 #[ doc = "" ]
105105 #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
106106 #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
107- pub fn get_mapped_range_with_u32 ( this : & GpuBuffer , offset : u32 ) -> :: js_sys:: ArrayBuffer ;
107+ pub fn get_mapped_range_with_u32 (
108+ this : & GpuBuffer ,
109+ offset : u32 ,
110+ ) -> Result < :: js_sys:: ArrayBuffer , JsValue > ;
108111 #[ cfg( web_sys_unstable_apis) ]
109- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
112+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
110113 #[ doc = "The `getMappedRange()` method." ]
111114 #[ doc = "" ]
112115 #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
@@ -115,9 +118,12 @@ extern "C" {
115118 #[ doc = "" ]
116119 #[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
117120 #[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
118- pub fn get_mapped_range_with_f64 ( this : & GpuBuffer , offset : f64 ) -> :: js_sys:: ArrayBuffer ;
121+ pub fn get_mapped_range_with_f64 (
122+ this : & GpuBuffer ,
123+ offset : f64 ,
124+ ) -> Result < :: js_sys:: ArrayBuffer , JsValue > ;
119125 #[ cfg( web_sys_unstable_apis) ]
120- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
126+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
121127 #[ doc = "The `getMappedRange()` method." ]
122128 #[ doc = "" ]
123129 #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
@@ -130,9 +136,9 @@ extern "C" {
130136 this : & GpuBuffer ,
131137 offset : u32 ,
132138 size : u32 ,
133- ) -> :: js_sys:: ArrayBuffer ;
139+ ) -> Result < :: js_sys:: ArrayBuffer , JsValue > ;
134140 #[ cfg( web_sys_unstable_apis) ]
135- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
141+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
136142 #[ doc = "The `getMappedRange()` method." ]
137143 #[ doc = "" ]
138144 #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
@@ -145,9 +151,9 @@ extern "C" {
145151 this : & GpuBuffer ,
146152 offset : f64 ,
147153 size : u32 ,
148- ) -> :: js_sys:: ArrayBuffer ;
154+ ) -> Result < :: js_sys:: ArrayBuffer , JsValue > ;
149155 #[ cfg( web_sys_unstable_apis) ]
150- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
156+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
151157 #[ doc = "The `getMappedRange()` method." ]
152158 #[ doc = "" ]
153159 #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
@@ -160,9 +166,9 @@ extern "C" {
160166 this : & GpuBuffer ,
161167 offset : u32 ,
162168 size : f64 ,
163- ) -> :: js_sys:: ArrayBuffer ;
169+ ) -> Result < :: js_sys:: ArrayBuffer , JsValue > ;
164170 #[ cfg( web_sys_unstable_apis) ]
165- # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
171+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange) ]
166172 #[ doc = "The `getMappedRange()` method." ]
167173 #[ doc = "" ]
168174 #[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)" ]
@@ -175,7 +181,7 @@ extern "C" {
175181 this : & GpuBuffer ,
176182 offset : f64 ,
177183 size : f64 ,
178- ) -> :: js_sys:: ArrayBuffer ;
184+ ) -> Result < :: js_sys:: ArrayBuffer , JsValue > ;
179185 #[ cfg( web_sys_unstable_apis) ]
180186 # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapAsync) ]
181187 #[ doc = "The `mapAsync()` method." ]
0 commit comments