Skip to main content

JS_DeleteProperty

Function JS_DeleteProperty 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_DeleteProperty( ctx: *mut JsContext, obj: JsValue, prop: Atom, flags: c_int, ) -> c_int
Expand description

JS_DeleteProperty: delete obj[prop].

flags may carry JS_PROP_THROW, in which case the reference answers -1 for a refused delete and raises a TypeError in strict mode. true is 1, false is 0.

ยงSafety

obj must be a live JSValue.