Revise the API ArrayBuffer related operations (#4284)
- External ArrayBuffer construction with 0 length should be equivalent to `new ArrayBuffer(0)` - Internally allocated ArrayBuffers should be detachable - Externally allocated ArrayBuffers free callback should be called when underlying buffer is detached JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -45,8 +45,6 @@ uint32_t JERRY_ATTR_PURE
|
||||
ecma_arraybuffer_get_length (ecma_object_t *obj_p);
|
||||
bool JERRY_ATTR_PURE
|
||||
ecma_arraybuffer_is_detached (ecma_object_t *obj_p);
|
||||
bool JERRY_ATTR_PURE
|
||||
ecma_arraybuffer_is_detachable (ecma_object_t *obj_p);
|
||||
bool
|
||||
ecma_arraybuffer_detach (ecma_object_t *obj_p);
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user