| 1408 | } |
| 1409 | |
| 1410 | txSlot* fxCheckWeakMapKey(txMachine* the, txBoolean mutable) |
| 1411 | { |
| 1412 | if (mxArgc > 0) { |
| 1413 | txSlot* slot = fxCanBeHeldWeakly(the, mxArgv(0)); |
| 1414 | if (slot && mutable && (slot->flag & XS_MARK_FLAG)) |
| 1415 | mxTypeError("key: read-only"); |
| 1416 | return slot; |
| 1417 | } |
| 1418 | return C_NULL; |
| 1419 | } |
| 1420 | |
| 1421 | txSlot* fxNewWeakMapInstance(txMachine* the) |
| 1422 | { |
no test coverage detected