JsObject(JsFunction constructor, [List arguments])

Constructs a new JavaScript object from constructor and returns a proxy to it.

Source

factory JsObject(JsFunction constructor, [List arguments]) {
  try {
    return html_common.unwrap_jso(_create(constructor, arguments));
  } catch (e) {
    // Re-throw any errors (returned as a string) as a DomException.
    throw new html.DomException.jsInterop(e);
  }
}