mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
Fix Iterator and WeakMap prototype objects to be an ordinary object
* remove ArrayIteratorPrototypeObject * fix ArrayIteratorPrototype.next to throw a TypeError for detached buffer Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
parent
3fd2b67431
commit
38750ec549
14 changed files with 44 additions and 69 deletions
|
|
@ -129,12 +129,7 @@ ObjectHasPropertyResult StringObject::hasIndexedProperty(ExecutionState& state,
|
|||
}
|
||||
|
||||
StringIteratorObject::StringIteratorObject(ExecutionState& state, String* s)
|
||||
: StringIteratorObject(state, state.context()->globalObject()->stringIteratorPrototype(), s)
|
||||
{
|
||||
}
|
||||
|
||||
StringIteratorObject::StringIteratorObject(ExecutionState& state, Object* proto, String* s)
|
||||
: IteratorObject(state, proto)
|
||||
: IteratorObject(state, state.context()->globalObject()->stringIteratorPrototype())
|
||||
, m_string(s)
|
||||
, m_iteratorNextIndex(0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue