mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix toString for some web objects (#2040)
This commit is contained in:
parent
5f97c041d9
commit
bb617d2478
8 changed files with 37 additions and 0 deletions
|
@ -19,3 +19,9 @@ test(function customEventInitializedWithDetail() {
|
|||
assertEquals(event.target, null);
|
||||
assertEquals(event.type, type);
|
||||
});
|
||||
|
||||
test(function toStringShouldBeWebCompatibility() {
|
||||
const type = "touchstart";
|
||||
const event = new CustomEvent(type, {});
|
||||
assertEquals(event.toString(), "[object CustomEvent]");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue