| 166 | } |
| 167 | |
| 168 | void fxDefaultFunctionPrototype(txMachine* the) |
| 169 | { |
| 170 | txSlot* instance; |
| 171 | txSlot* property; |
| 172 | instance = the->stack->value.reference; |
| 173 | instance->flag |= XS_CAN_CONSTRUCT_FLAG; |
| 174 | property = fxLastProperty(the, instance); |
| 175 | mxPush(mxObjectPrototype); |
| 176 | instance = fxNewObjectInstance(the); |
| 177 | fxNextSlotProperty(the, property, the->stack, mxID(_prototype), XS_DONT_DELETE_FLAG | XS_DONT_ENUM_FLAG); |
| 178 | mxPop(); |
| 179 | fxNextSlotProperty(the, instance, the->stack, mxID(_constructor), XS_DONT_ENUM_FLAG); |
| 180 | } |
| 181 | |
| 182 | txSlot* fxGetPrototypeFromConstructor(txMachine* the, txSlot* defaultPrototype) |
| 183 | { |
no test coverage detected