From a06362b3190d4a429ac095626b7921855df5d30a Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Tue, 15 Oct 2024 17:14:03 +0800 Subject: [PATCH] internal: update test driver args passing for js backend (#394) --- crates/moonbuild/template/test_driver/js_args.mbt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/moonbuild/template/test_driver/js_args.mbt b/crates/moonbuild/template/test_driver/js_args.mbt index 34cf1b7d..45ae991e 100644 --- a/crates/moonbuild/template/test_driver/js_args.mbt +++ b/crates/moonbuild/template/test_driver/js_args.mbt @@ -1,6 +1,4 @@ -fn moonbit_test_driver_internal_get_file_name(file_name : MoonbitTestDriverInternalExternString) -> String { - file_name._ -} +extern "js" fn moonbit_test_driver_internal_get_file_name(file_name : MoonbitTestDriverInternalExternString) -> String = "(file_name) => file_name" -type MoonbitTestDriverInternalExternString String +type MoonbitTestDriverInternalExternString