| 315 | } |
| 316 | |
| 317 | void fxPushAtomicsValue(txMachine* the, int i, txID id) |
| 318 | { |
| 319 | txSlot* slot; |
| 320 | if (mxArgc > i) |
| 321 | mxPushSlot(mxArgv(i)); |
| 322 | else |
| 323 | mxPushUndefined(); |
| 324 | slot = the->stack; |
| 325 | if ((id == _BigInt64Array) || (id == _BigUint64Array)) |
| 326 | fxBigIntCoerce(the, slot); |
| 327 | else if (XS_INTEGER_KIND != slot->kind) { |
| 328 | txNumber value; |
| 329 | fxNumberCoerce(the, slot); |
| 330 | value = c_trunc(slot->value.number); |
| 331 | if (c_isnan(value) || (value == -0)) |
| 332 | value = 0; |
| 333 | slot->value.number = value; |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | |
| 338 | void fx_SharedArrayBuffer(txMachine* the) |
no test coverage detected