diff options
author | 迷渡 <justjavac@gmail.com> | 2019-04-03 20:41:05 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-03 08:41:05 -0400 |
commit | bb617d24781d7c1e67e8e825cc07faba9a5df075 (patch) | |
tree | f219c5e5cd2e930c18d6ef0870b29af900bd8e4a /js/event_target_test.ts | |
parent | 5f97c041d9115c480e3b9f428cfee27b109b3883 (diff) |
fix toString for some web objects (#2040)
Diffstat (limited to 'js/event_target_test.ts')
-rw-r--r-- | js/event_target_test.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/event_target_test.ts b/js/event_target_test.ts index c1c9bb1f4..71c872dab 100644 --- a/js/event_target_test.ts +++ b/js/event_target_test.ts @@ -87,3 +87,8 @@ test(function constructedEventTargetUseObjectPrototype() { target.dispatchEvent(event); assertEquals(callCount, 2); }); + +test(function toStringShouldBeWebCompatibility() { + const target = new EventTarget(); + assertEquals(target.toString(), "[object EventTarget]"); +}); |