0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-13 01:06:00 -05:00
denoland-deno/cli/tests/unit/symbol_test.ts
Bartek Iwańczuk c7bcfaba87 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
2024-02-08 14:56:46 +05:30

11 lines
341 B
TypeScript

// 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");
},
);