mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
52d373fa63
issue : https://gitee.com/openharmony/developtools_ace_ets2bundle/issues/I76TBP?from=project-issue Signed-off-by: DaiHN <daihuina1@huawei.com> Change-Id: I7e5eab96e7fe252aa96bb38256728234bd2d90d5
31 lines
1.2 KiB
C++
31 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) 2023 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef ECMASCRIPT_MODULE_JS_DYNAMIC_IMPORT_H
|
|
#define ECMASCRIPT_MODULE_JS_DYNAMIC_IMPORT_H
|
|
|
|
#include "ecmascript/builtins/builtins_promise_job.h"
|
|
#include "ecmascript/js_tagged_value-inl.h"
|
|
#include "ecmascript/module/js_module_source_text.h"
|
|
|
|
namespace panda::ecmascript {
|
|
class DynamicImport {
|
|
public:
|
|
static JSTaggedValue ExecuteNativeModule(JSThread *thread, JSHandle<EcmaString> specifierString,
|
|
ModuleTypes moduleType, JSHandle<JSPromiseReactionsFunction> resolve,
|
|
JSHandle<JSPromiseReactionsFunction> reject);
|
|
};
|
|
} // namespace panda::ecmascript
|
|
#endif // ECMASCRIPT_MODULE_JS_DYNAMIC_IMPORT_H
|