diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-05-07 22:02:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 21:02:29 +0000 |
commit | 25fcfe5d79850b6969f2756415fc01e2234850c9 (patch) | |
tree | c9b57ed0a0beee991db3cefaadbf42bf446ec040 /tests/unit/dom_exception_test.ts | |
parent | 998036b3998301dc53b0dc4700b91d0a9c630702 (diff) |
fix: DOMException doesn't throw on __callSitesEvals (#23729)
Diffstat (limited to 'tests/unit/dom_exception_test.ts')
-rw-r--r-- | tests/unit/dom_exception_test.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/dom_exception_test.ts b/tests/unit/dom_exception_test.ts index de335e105..806248caa 100644 --- a/tests/unit/dom_exception_test.ts +++ b/tests/unit/dom_exception_test.ts @@ -1,6 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { + assert, assertEquals, assertNotEquals, assertStringIncludes, @@ -21,3 +22,9 @@ Deno.test(function nameToCodeMappingPrototypeAccess() { assertNotEquals(newCode, new DOMException("test", "pollution").code); Reflect.deleteProperty(objectPrototype, "pollution"); }); + +Deno.test(function callSitesEvalsDoesntThrow() { + const e2 = new DOMException("asdf"); + // @ts-ignore no types for `__callSiteEvals` but it's observable. + assert(Array.isArray(e2.__callSiteEvals)); +}); |