From f37c4820419d693c9dec74226fc718c2b309ddd5 Mon Sep 17 00:00:00 2001 From: wangwenjun59 Date: Tue, 22 Jul 2025 23:10:32 +0800 Subject: [PATCH] Description: bigint toString() support undefined Signed-off-by: wangwenjun59 --- ets2panda/test/runtime/ets/BigInt5.ets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ets2panda/test/runtime/ets/BigInt5.ets b/ets2panda/test/runtime/ets/BigInt5.ets index 9f5ea07be2..50c939f603 100644 --- a/ets2panda/test/runtime/ets/BigInt5.ets +++ b/ets2panda/test/runtime/ets/BigInt5.ets @@ -89,7 +89,13 @@ function test_unary(): void { arktest.assertEQ(b.toString(), "-321") } +function test_undefined(): void { + let n = 10n + arktest.assertEQ(n.toString(undefined), "10") +} + function main() : void { test_unary() test_unary_minus() + test_undefined() } -- Gitee