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

Function fxNewDateInstance

xs/sources/xsDate.c:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139txSlot* fxNewDateInstance(txMachine* the)
140{
141 txSlot* instance;
142 txSlot* property;
143 instance = fxNewObjectInstance(the);
144 property = fxNextNumberProperty(the, instance, 0, XS_NO_ID, XS_INTERNAL_FLAG);
145 property->kind = XS_DATE_KIND;
146 property->value.number = C_NAN;
147 return instance;
148}
149
150void fx_Date(txMachine* the)
151{

Callers 1

fx_Date_auxFunction · 0.85

Calls 2

fxNewObjectInstanceFunction · 0.85
fxNextNumberPropertyFunction · 0.85

Tested by

no test coverage detected