Add allocate/free callbacks to ArrayBuffers (#4801)
Larger buffer allocations will throw error instead of calling jerry_fatal. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -35,10 +35,6 @@ ecma_op_create_shared_arraybuffer_object (const ecma_value_t *, uint32_t);
|
||||
*/
|
||||
ecma_object_t *
|
||||
ecma_shared_arraybuffer_new_object (uint32_t lengh);
|
||||
ecma_object_t *
|
||||
ecma_shared_arraybuffer_new_object_external (uint32_t length,
|
||||
void *buffer_p,
|
||||
jerry_value_free_callback_t free_cb);
|
||||
#endif /* JERRY_BUILTIN_SHAREDARRAYBUFFER */
|
||||
bool
|
||||
ecma_is_shared_arraybuffer (ecma_value_t val);
|
||||
|
||||
Reference in New Issue
Block a user