| 61 | } |
| 62 | |
| 63 | void fx_Boolean(txMachine* the) |
| 64 | { |
| 65 | txBoolean value = (mxArgc > 0) ? fxToBoolean(the, mxArgv(0)) : 0; |
| 66 | if (!mxHasTarget) { |
| 67 | mxResult->kind = XS_BOOLEAN_KIND; |
| 68 | mxResult->value.boolean = value; |
| 69 | } |
| 70 | else { |
| 71 | txSlot* instance; |
| 72 | mxPushSlot(mxTarget); |
| 73 | fxGetPrototypeFromConstructor(the, &mxBooleanPrototype); |
| 74 | instance = fxNewBooleanInstance(the); |
| 75 | instance->next->value.boolean = value; |
| 76 | mxPullSlot(mxResult); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void fx_Boolean_prototype_toString(txMachine* the) |
| 81 | { |
nothing calls this directly
no test coverage detected