Skip to main content

is_instance

Function is_instance 

Source
pub fn is_instance(value: &Value, class: &Value) -> bool
Expand description

Mirrors TS e instanceof <ClassName>: panic payloads in the transpiled tests are Value::Str(format!("[{kind}] {message}")) (see ExchangeError’s Display impl), so the class name is whatever sits between the first pair of square brackets. Matches the expected-error-class names that broker-id and static-request tests pass as Value::Str("InvalidProxySettings").