mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Add ArrayObjectRef::attachExternalBuffer API
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
161f516c54
commit
2c4174f93b
7 changed files with 50 additions and 53 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue