fix(javascript): preserve bound receivers for intrinsic invocation

This commit is contained in:
morluto
2026-10-12 00:39:01 +08:00
parent 1e1a611012
commit 3e9bce6249
6 changed files with 95 additions and 70 deletions
@@ -43,6 +43,8 @@ export const electronMemberPath = (
/** A known intrinsic callable and its examined positional arguments. */
export interface JavaScriptIntrinsicInvocation {
/** The original bound receiver; rebinding cannot replace it. */
readonly receiver?: t.Node;
readonly path: readonly string[];
readonly arguments:
| readonly t.CallExpression["arguments"][number][]