From 7c111da5f698b20db4db9e7fc02463f401c081db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 6 Feb 2024 14:57:25 +0100 Subject: fix: Support Symbol.metadata (#22282) This commit adds support for "Symbol.metadata" which was omitted when adding support for the Decorators Proposal. Closes https://github.com/denoland/deno/issues/22111 --- cli/tests/integration/js_unit_tests.rs | 1 + cli/tests/unit/symbol_test.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 cli/tests/unit/symbol_test.ts (limited to 'cli/tests') diff --git a/cli/tests/integration/js_unit_tests.rs b/cli/tests/integration/js_unit_tests.rs index 00e26cc91..cb843ee4e 100644 --- a/cli/tests/integration/js_unit_tests.rs +++ b/cli/tests/integration/js_unit_tests.rs @@ -84,6 +84,7 @@ util::unit_test_factory!( stdio_test, streams_test, structured_clone_test, + symbol_test, symlink_test, sync_test, test_util, diff --git a/cli/tests/unit/symbol_test.ts b/cli/tests/unit/symbol_test.ts new file mode 100644 index 000000000..54db7f5ba --- /dev/null +++ b/cli/tests/unit/symbol_test.ts @@ -0,0 +1,11 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +import { assert } from "./test_util.ts"; + +// Test that `Symbol.metadata` is defined. This file can be removed when V8 +// supports `Symbol.metadata` natively. + +Deno.test( + function symbolMetadataIsDefined() { + assert(typeof Symbol.metadata === "symbol"); + }, +); -- cgit v1.2.3