mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement NamedPropertyHandler API to ObjectTemplate
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
773007bec6
commit
25588dcb01
37 changed files with 831 additions and 254 deletions
|
|
@ -84,7 +84,7 @@ static Value builtinArrayBufferSlice(ExecutionState& state, Value thisValue, siz
|
|||
|
||||
Value constructor = obj->speciesConstructor(state, state.context()->globalObject()->arrayBuffer());
|
||||
Value arguments[] = { Value(newLen) };
|
||||
Object* newValue = Object::construct(state, constructor, 1, arguments);
|
||||
Object* newValue = Object::construct(state, constructor, 1, arguments).toObject(state);
|
||||
if (!newValue->isArrayBufferObject()) {
|
||||
ErrorObject::throwBuiltinError(state, ErrorObject::TypeError, state.context()->staticStrings().ArrayBuffer.string(), true, state.context()->staticStrings().slice.string(), "%s: return value of constructor ArrayBuffer is not valid ArrayBuffer");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue