From a07e5762f0a8c96913bd607db8ac611a0f1e1a80 Mon Sep 17 00:00:00 2001 From: Denis Silakov Date: Mon, 7 Jul 2025 11:32:44 +0300 Subject: [PATCH 1/2] Test --- .../tests/interop_js/tests/objects_passing/objects_passing.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static_core/plugins/ets/tests/interop_js/tests/objects_passing/objects_passing.ets b/static_core/plugins/ets/tests/interop_js/tests/objects_passing/objects_passing.ets index cc89a9f2ca..f7ae048cab 100644 --- a/static_core/plugins/ets/tests/interop_js/tests/objects_passing/objects_passing.ets +++ b/static_core/plugins/ets/tests/interop_js/tests/objects_passing/objects_passing.ets @@ -74,6 +74,6 @@ function getOuterObject(): number { // Test 8 Update object value function updateObjectValue(): number { - updateObjectId.invoke(testObject, 333); + updateObjectId.invoke(testObject,333); return testObject.getProperty('id').toNumber(); } -- Gitee From 11b2b88f96d1df21e7ca25c4fc9cf7f50e4fdfbe Mon Sep 17 00:00:00 2001 From: Denis Silakov Date: Mon, 7 Jul 2025 11:33:19 +0300 Subject: [PATCH 2/2] Test --- .../interop_js/tests/test_intrins/frontend_test_intrins.ets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static_core/plugins/ets/tests/interop_js/tests/test_intrins/frontend_test_intrins.ets b/static_core/plugins/ets/tests/interop_js/tests/test_intrins/frontend_test_intrins.ets index 79b5b8c006..f1c310dfad 100644 --- a/static_core/plugins/ets/tests/interop_js/tests/test_intrins/frontend_test_intrins.ets +++ b/static_core/plugins/ets/tests/interop_js/tests/test_intrins/frontend_test_intrins.ets @@ -31,10 +31,12 @@ import { function vstringify(val: JSValue): String { return stringifyValue(val) as String; } + function unreachable(): Error { log("unreachable reached!"); return new Error("unreachable"); } + function throwmsg(msg: String): boolean { throw new Error(msg); } -- Gitee