diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-02-06 14:57:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 14:57:25 +0100 |
commit | 7c111da5f698b20db4db9e7fc02463f401c081db (patch) | |
tree | 799db706f7b54fe697009f360a5465505cbab884 /cli/tests/unit/symbol_test.ts | |
parent | e568cb8bf85161ea850ca2ae3b11247a0d5dcabd (diff) |
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
Diffstat (limited to 'cli/tests/unit/symbol_test.ts')
-rw-r--r-- | cli/tests/unit/symbol_test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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"); + }, +); |