[−][src]Function js_sys::Reflect::prevent_extensions
pub fn prevent_extensions(target: &Object) -> Result<bool, JsValue>
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.