| 249 | } |
| 250 | |
| 251 | void PiuTextLinkDictionary(xsMachine* the, void* it) |
| 252 | { |
| 253 | PiuTextLink* self = it; |
| 254 | if (xsFindResult(xsArg(1), xsID_anchor)) { |
| 255 | if (xsTest(xsArg(0))) { |
| 256 | xsSetAt(xsArg(0), xsResult, xsThis); |
| 257 | } |
| 258 | } |
| 259 | if (xsFindResult(xsArg(1), xsID_Behavior)) { |
| 260 | if (xsIsInstanceOf(xsResult, xsFunctionPrototype)) { |
| 261 | fxPush(xsResult); |
| 262 | fxNew(the); |
| 263 | fxRunCount(the, 0); |
| 264 | xsResult = fxPop(); |
| 265 | (*self)->behavior = xsToReference(xsResult); |
| 266 | } |
| 267 | } |
| 268 | else if (xsFindResult(xsArg(1), xsID_behavior)) { |
| 269 | if (xsIsInstanceOf(xsResult, xsObjectPrototype)) { |
| 270 | (*self)->behavior = xsToReference(xsResult); |
| 271 | } |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | void PiuTextLinkMark(xsMachine* the, void* it, xsMarkRoot markRoot) |
| 276 | { |
no test coverage detected