mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-19 11:34:49 -04:00
Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
This commit is contained in:
@@ -51,7 +51,7 @@ JSHandle<JSTaggedValue> TemplateString::GetTemplateObject(JSThread *thread, JSHa
|
||||
}
|
||||
JSObject::SetIntegrityLevel(thread, rawObj, IntegrityLevel::FROZEN);
|
||||
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
|
||||
JSHandle<JSTaggedValue> raw(factory->NewFromString("raw"));
|
||||
JSHandle<JSTaggedValue> raw(factory->NewFromCanBeCompressString("raw"));
|
||||
PropertyDescriptor desc(thread, rawArr, false, false, false);
|
||||
JSArray::DefineOwnProperty(thread, templateObj, raw, desc);
|
||||
JSObject::SetIntegrityLevel(thread, templateObj, IntegrityLevel::FROZEN);
|
||||
|
||||
Reference in New Issue
Block a user