Skip to main content

static_call

Function static_call 

Source
pub fn static_call(
    method: &str,
    args: &[Value],
) -> Option<Result<Value, String>>
Expand description

URL.canParse(input[, base]) / URL.parse(input[, base]).

Both are the non-throwing form of the constructor: canParse reports whether parsing succeeds, parse returns the URL or null. Neither existed, so URL.canParse was a TypeError rather than a boolean.