mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 13:31:22 +00:00
js-sys: Add bindings to ReferenceError
This commit is contained in:
@ -2103,6 +2103,25 @@ extern {
|
||||
pub fn new(message: &str) -> RangeError;
|
||||
}
|
||||
|
||||
// ReferenceError
|
||||
#[wasm_bindgen]
|
||||
extern {
|
||||
/// The ReferenceError object represents an error when a non-existent
|
||||
/// variable is referenced.
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError
|
||||
#[wasm_bindgen(extends = Error)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub type ReferenceError;
|
||||
|
||||
/// The ReferenceError object represents an error when a non-existent
|
||||
/// variable is referenced.
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError
|
||||
#[wasm_bindgen(constructor)]
|
||||
pub fn new(message: &str) -> ReferenceError;
|
||||
}
|
||||
|
||||
// Reflect
|
||||
#[wasm_bindgen]
|
||||
extern "C" {
|
||||
|
Reference in New Issue
Block a user