Update stable copy of buffer bytes in WebAssembly compile

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2020-11-27 14:50:11 +09:00 committed by Boram Bae
commit 3fd16b168b
4 changed files with 26 additions and 5 deletions

View file

@ -116,7 +116,7 @@ void GlobalObject::installArrayBuffer(ExecutionState& state)
ObjectPropertyDescriptor(new NativeFunctionObject(state, NativeFunctionInfo(strings->isView, builtinArrayBufferIsView, 1, NativeFunctionInfo::Strict)),
(ObjectPropertyDescriptor::PresentAttribute)(ObjectPropertyDescriptor::WritablePresent | ObjectPropertyDescriptor::ConfigurablePresent)));
m_arrayBufferPrototype = new ArrayBufferObject(state, m_objectPrototype);
m_arrayBufferPrototype = new Object(state, m_objectPrototype);
m_arrayBufferPrototype->setGlobalIntrinsicObject(state, true);
m_arrayBufferPrototype->defineOwnProperty(state, ObjectPropertyName(strings->constructor), ObjectPropertyDescriptor(m_arrayBuffer, (ObjectPropertyDescriptor::PresentAttribute)(ObjectPropertyDescriptor::WritablePresent | ObjectPropertyDescriptor::ConfigurablePresent)));