diff --git a/tests/runtime/common/gc/CMakeLists.txt b/tests/runtime/common/gc/CMakeLists.txt index 835be59e75e67bdc718258bec9fc72eee075cf13..58051b575a44e91bb6bcab7ae6e606a6c3b692a0 100644 --- a/tests/runtime/common/gc/CMakeLists.txt +++ b/tests/runtime/common/gc/CMakeLists.txt @@ -60,3 +60,4 @@ panda_add_ecma_gc_test(FILE hclass_changing_during_concurrent.js OPTIONS "--gc-t panda_add_ecma_gc_test(FILE pinObject.js OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never") panda_add_ecma_gc_test(FILE copylexenvDynTest.js OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" "--gc-use-nth-alloc-trigger=true" "--heap-verifier=fail_on_verification:pre:into:post") panda_add_ecma_gc_test(FILE hclass_collected_before_object.js OPTIONS "--gc-type=g1-gc" "--gc-trigger-type=debug-never" "--g1-track-freed-objects=true") +panda_add_ecma_gc_test(FILE intl_datetime_call.js OPTIONS "--gc-type=g1-gc" "--heap-verifier=fail_on_verification:post") diff --git a/tests/runtime/common/gc/intl_datetime_call.js b/tests/runtime/common/gc/intl_datetime_call.js new file mode 100644 index 0000000000000000000000000000000000000000..56724e88ec0faee1da3c613460955d2adfce351c --- /dev/null +++ b/tests/runtime/common/gc/intl_datetime_call.js @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022 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. + */ + +Intl.DateTimeFormat.call();