footprintjs - v11.2.0
    Preparing search index...

    Function registerScopeRuntime

    • Register a custom scope's engine-facing port and return the SAME scope. Registration never reads, writes or enumerates properties on scope. Re-registering explicitly replaces its binding. The descriptor is copied and frozen; the target itself remains live and belongs to its provider. Replacing capabilities never retargets an already captured native producer.

      Type Parameters

      • T extends object

      Parameters

      Returns T

      const facade = new ScopeFacade(context, stageName, input, env);
      return registerScopeRuntime(myProxy, { target: facade, handlesAssignments: true });