MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxVerifyProperty

Function fxVerifyProperty

xs/sources/xsLockdown.c:893–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891}
892
893void fxVerifyProperty(txMachine* the, txSlot *list, txSlot *path, txSlot* property, txID id)
894{
895 fxVerifyPropertyError(the, list, path, property, id, 0);
896 if (property->kind == XS_REFERENCE_KIND)
897 fxVerifyQueue(the, list, path, property->value.reference, id, 0, C_NULL);
898 else if (property->kind == XS_ACCESSOR_KIND) {
899 if (property->value.accessor.getter)
900 fxVerifyQueue(the, list, path, property->value.accessor.getter, id, 0, C_NULL);
901 if (property->value.accessor.setter)
902 fxVerifyQueue(the, list, path, property->value.accessor.setter, id, 0, C_NULL);
903 }
904}
905
906void fxVerifyPropertyError(txMachine* the, txSlot *list, txSlot *path, txSlot* property, txID id, txIndex index)
907{

Callers 2

fxVerifyCodeFunction · 0.85
fxVerifyInstanceFunction · 0.85

Calls 2

fxVerifyPropertyErrorFunction · 0.85
fxVerifyQueueFunction · 0.85

Tested by

no test coverage detected