Skip to content

Commit 09a4488

Browse files
Patrick Soquetmkellner
authored andcommitted
XS: fix fxNewHostConstructor for frozen prototype
1 parent 6e1a2ee commit 09a4488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xs/sources/xsAPI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ txSlot* fxNewHostConstructor(txMachine* the, txCallback theCallback, txInteger t
548548
instance->flag |= XS_CAN_CONSTRUCT_FLAG;
549549
property = fxLastProperty(the, instance);
550550
fxNextSlotProperty(the, property, aStack, mxID(_prototype), XS_GET_ONLY);
551-
property = mxBehaviorSetProperty(the, fxGetInstance(the, aStack), mxID(_constructor), XS_NO_ID, XS_ANY);
551+
property = mxBehaviorSetProperty(the, fxGetInstance(the, aStack), mxID(_constructor), XS_NO_ID, XS_OWN);
552552
property->flag = XS_DONT_ENUM_FLAG;
553553
property->kind = the->stack->kind;
554554
property->value = the->stack->value;

0 commit comments

Comments
 (0)