From edae7d742cfc6928f0ea5cf2cc9e7226663d7e88 Mon Sep 17 00:00:00 2001 From: Evgeniy Nikeytsev Date: Wed, 28 Dec 2022 19:50:37 +0300 Subject: [PATCH] Add test for Intl.DateTimeFormat object call Signed-off-by: Evgeniy Nikeytsev --- tests/runtime/common/gc/CMakeLists.txt | 1 + tests/runtime/common/gc/intl_datetime_call.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/runtime/common/gc/intl_datetime_call.js diff --git a/tests/runtime/common/gc/CMakeLists.txt b/tests/runtime/common/gc/CMakeLists.txt index 835be59e7..58051b575 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 000000000..56724e88e --- /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(); -- Gitee