Add ArrayObjectRef::attachExternalBuffer API

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2021-02-17 20:49:55 +09:00 committed by Boram Bae
commit 2c4174f93b
7 changed files with 50 additions and 53 deletions

View file

@ -310,7 +310,7 @@ static ValueRef* builtin262CreateRealm(ExecutionStateRef* state, ValueRef* thisV
static ValueRef* builtin262DetachArrayBuffer(ExecutionStateRef* state, ValueRef* thisValue, size_t argc, ValueRef** argv, bool isConstructCall)
{
if (argv[0]->isArrayBufferObject()) {
argv[0]->asArrayBufferObject()->detachArrayBuffer(state);
argv[0]->asArrayBufferObject()->detachArrayBuffer();
}
return ValueRef::createUndefined();