in src/XHPJSCall.php [17:37]
protected function jsCall(
string $module,
string $method,
mixed ...$args
): void {
$calls = $this->getContext('x_js_scope/calls', null);
invariant(
$calls is ScriptDataList,
'Can not use jsCall unless x_js_scope is an ancestor in the tree',
);
$calls->append(tuple(
$module,
$method,
Vec\map(
$args,
$arg ==>
/* HHAST_FIXME[NamespacePrivate] Fix when picking a namespace for this project */
_Private\to_js_value($arg),
),
));
}