mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-19 19:43:48 -04:00
EcmaScript Standard Module Implementation
Delete the existing module implementation and re implement the module function according to the ECMA 2018 specification issue: #I4NZQT [https://gitee.com/openharmony/ark_ts2abc/issues/I4NZQT] Signed-off-by: y00576111 <yaojian16@huawei.com> Change-Id: I8d381db7f8bf2f3d6b2a5c21cbc3cbab1aef0b9b
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
#include "js_function.h"
|
||||
|
||||
#include "ecmascript/base/error_type.h"
|
||||
#include "ecmascript/class_info_extractor.h"
|
||||
#include "ecmascript/ecma_macros.h"
|
||||
#include "ecmascript/ecma_runtime_call_info.h"
|
||||
#include "ecmascript/global_env.h"
|
||||
#include "ecmascript/internal_call_params.h"
|
||||
#include "ecmascript/interpreter/interpreter-inl.h"
|
||||
#include "ecmascript/jspandafile/class_info_extractor.h"
|
||||
#include "ecmascript/js_handle.h"
|
||||
#include "ecmascript/js_promise.h"
|
||||
#include "ecmascript/js_proxy.h"
|
||||
@@ -46,6 +46,7 @@ void JSFunction::InitializeJSFunction(JSThread *thread, const JSHandle<JSFunctio
|
||||
func->SetProtoOrDynClass(thread, JSTaggedValue::Hole(), SKIP_BARRIER);
|
||||
func->SetHomeObject(thread, JSTaggedValue::Undefined(), SKIP_BARRIER);
|
||||
func->SetLexicalEnv(thread, JSTaggedValue::Undefined(), SKIP_BARRIER);
|
||||
func->SetModule(thread, JSTaggedValue::Undefined(), SKIP_BARRIER);
|
||||
func->SetConstantPool(thread, JSTaggedValue::Undefined(), SKIP_BARRIER);
|
||||
func->SetProfileTypeInfo(thread, JSTaggedValue::Undefined(), SKIP_BARRIER);
|
||||
func->SetFunctionExtraInfo(thread, JSTaggedValue::Undefined());
|
||||
|
||||
Reference in New Issue
Block a user