diff options
Diffstat (limited to 'cli/tests/unit/dom_exception_test.ts')
-rw-r--r-- | cli/tests/unit/dom_exception_test.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/tests/unit/dom_exception_test.ts b/cli/tests/unit/dom_exception_test.ts deleted file mode 100644 index de335e105..000000000 --- a/cli/tests/unit/dom_exception_test.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. - -import { - assertEquals, - assertNotEquals, - assertStringIncludes, -} from "./test_util.ts"; - -Deno.test(function customInspectFunction() { - const exception = new DOMException("test"); - assertEquals(Deno.inspect(exception), exception.stack); - assertStringIncludes(Deno.inspect(DOMException.prototype), "DOMException"); -}); - -Deno.test(function nameToCodeMappingPrototypeAccess() { - const newCode = 100; - const objectPrototype = Object.prototype as unknown as { - pollution: number; - }; - objectPrototype.pollution = newCode; - assertNotEquals(newCode, new DOMException("test", "pollution").code); - Reflect.deleteProperty(objectPrototype, "pollution"); -}); |