mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-21 08:41:35 +00:00
Bindings for Proxy.new()
Signed-off-by: Stephan Renatus <srenatus@chef.io>
This commit is contained in:
14
src/js.rs
14
src/js.rs
@ -1030,6 +1030,20 @@ extern "C" {
|
||||
pub fn values(object: &Object) -> Array;
|
||||
}
|
||||
|
||||
// Proxy
|
||||
#[wasm_bindgen]
|
||||
extern {
|
||||
pub type Proxy;
|
||||
|
||||
/// The Proxy object is used to define custom behavior for fundamental
|
||||
/// operations (e.g. property lookup, assignment, enumeration, function
|
||||
/// invocation, etc).
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
|
||||
#[wasm_bindgen(constructor)]
|
||||
pub fn new(target: &JsValue, handler: &Object) -> Proxy;
|
||||
}
|
||||
|
||||
// Set
|
||||
#[wasm_bindgen]
|
||||
extern {
|
||||
|
Reference in New Issue
Block a user