From ea61c19b4174295bd8cf810de58f1fd3e0a9c4e3 Mon Sep 17 00:00:00 2001 From: zhongmingwei Date: Tue, 27 May 2025 09:17:04 +0800 Subject: [PATCH] Es2abc support static interface Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICAOLR Description: es2abc support static interface Signed-off-by: zhongmingwei Change-Id: Iba0a10c06240c2ae4c4189eaad1f4bf98156d1c2 --- build/scripts/generate_js_bytecode.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/scripts/generate_js_bytecode.py b/build/scripts/generate_js_bytecode.py index ea7ae832..1b721f63 100755 --- a/build/scripts/generate_js_bytecode.py +++ b/build/scripts/generate_js_bytecode.py @@ -58,6 +58,8 @@ def parse_args(): 'its value will be the path of input file if not specified') parser.add_argument("--enable-annotations", action='store_true', help='whether annotations are enabled or not') + parser.add_argument("--enable-ets-implements", action='store_true', + help='whether ets implements are enabled or not') arguments = parser.parse_args() return arguments @@ -107,6 +109,9 @@ def gen_abc_info(input_arguments): if input_arguments.enable_annotations: src_index = cmd.index(input_arguments.src_js) cmd.insert(src_index, '--enable-annotations') + if input_arguments.enable_ets_implements: + src_index = cmd.index(input_arguments.src_js) + cmd.insert(src_index, '--enable-ets-implements') # insert d.ts option to cmd later cmd.append("--target-api-sub-version=beta3") -- Gitee