You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
b. Let F be CreateBuiltinFunction(defaultConstructor, 0, className, « [[ConstructorKind]], [[SourceText]] », the current Realm Record, constructorParent).
This makes the subsequent assignments invalid:
Set F.[[PrivateMethods]] to instancePrivateMethods.
Set F.[[Fields]] to instanceFields.
It's probably sufficient to add these two to the additional internal slots list passed to CreateBuiltinFunction.
Additionally, InitializeInstanceElements is being invoked from within the synthesized constructor's abstract closure, passing the active function object:
vi. Perform ? InitializeInstanceElements(result, F).
The AO has its argument typed as "an ECMAScript function object" and performs the same field access, which is problematic for the same reasons.