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/unit/symbol_test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cli/tests/unit/symbol_test.ts (limited to 'cli/tests/unit/symbol_test.ts') 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