| 108 | } |
| 109 | |
| 110 | void fx_Object(txMachine* the) |
| 111 | { |
| 112 | if (mxHasTarget && !fxIsSameSlot(the, mxTarget, mxFunction)) { |
| 113 | mxPushSlot(mxTarget); |
| 114 | fxGetPrototypeFromConstructor(the, &mxObjectPrototype); |
| 115 | fxNewObjectInstance(the); |
| 116 | mxPullSlot(mxResult); |
| 117 | return; |
| 118 | } |
| 119 | if ((mxArgc == 0) || (mxArgv(0)->kind == XS_UNDEFINED_KIND) || (mxArgv(0)->kind == XS_NULL_KIND)) { |
| 120 | mxPush(mxObjectPrototype); |
| 121 | fxNewObjectInstance(the); |
| 122 | mxPullSlot(mxResult); |
| 123 | return; |
| 124 | } |
| 125 | *mxResult = *mxArgv(0); |
| 126 | fxToInstance(the, mxResult); |
| 127 | } |
| 128 | |
| 129 | void fx_Object_prototype___proto__get(txMachine* the) |
| 130 | { |
nothing calls this directly
no test coverage detected