makeThis2Argument

Make a dual-context container for use as a this argument.

makeThis2Argument

Parameters

loc
Type: Loc

location to use for error messages

sc
Type: Scope*

current scope

fd

target function that will take the this argument

Return Value

Temporary closure variable. Note: The function fd is added to the nested references of the newly created variable such that a closure is made for the variable when the address of fd is taken.

Meta