Allow to create ArrayBuffer with empty external user data (#3373)

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs r.takacs2@partner.samsung.com
This commit is contained in:
Roland Takacs
2019-11-29 14:22:44 +01:00
committed by Robert Fancsik
parent 35c0a6e299
commit c5ed46f5ac
3 changed files with 29 additions and 15 deletions
+1 -1
View File
@@ -3707,7 +3707,7 @@ jerry_create_arraybuffer_external (const jerry_length_t size
- `free_cb` - the callback function called when the object is released
- return value
- the new ArrayBuffer as a `jerry_value_t`
- if the `size` is zero or `buffer_p` is a null pointer will return RangeError
- if the `size` is zero or `buffer_p` is a null pointer this will return an empty ArrayBuffer.
*New in version 2.0*.