| 478 | } |
| 479 | |
| 480 | txSlot* fxNewArrayBufferInstance(txMachine* the) |
| 481 | { |
| 482 | txSlot* instance; |
| 483 | txSlot* property; |
| 484 | instance = fxNewObjectInstance(the); |
| 485 | property = instance->next = fxNewSlot(the); |
| 486 | property->flag = XS_INTERNAL_FLAG; |
| 487 | property->kind = XS_ARRAY_BUFFER_KIND; |
| 488 | property->value.arrayBuffer.address = C_NULL; |
| 489 | property->value.arrayBuffer.detachKey = C_NULL; |
| 490 | property = property->next = fxNewSlot(the); |
| 491 | property->flag = XS_INTERNAL_FLAG; |
| 492 | property->kind = XS_BUFFER_INFO_KIND; |
| 493 | property->value.bufferInfo.length = 0; |
| 494 | property->value.bufferInfo.maxLength = -1; |
| 495 | return instance; |
| 496 | } |
| 497 | |
| 498 | void fx_ArrayBuffer(txMachine* the) |
| 499 | { |
no test coverage detected