Function wgpu::web_sys::js_sys::Reflect::prevent_extensions

source ·
pub fn prevent_extensions(target: &Object) -> Result<bool, JsValue>
Available on webgl or webgpu only.
Expand description

The static Reflect.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). It is similar to Object.preventExtensions(), but with some differences.

MDN documentation