LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.
This PR is intended to address the following issues:
Refactoring of events.rs
Implementation of globalThis.EventTarget
Implementation of globalThis.CustomEvent
It is not yet complete in the following respects:
1. type property of CustomEvent is not available. We know that we need to modify EventKey::from_value().
==>We were able to avoid this by preparing a dedicated dispatchEvent().
2. the test code is not written yet.
Issue # (if available)
Closes #262
Description of changes
This PR is intended to address the following issues:
globalThis.EventTarget
globalThis.CustomEvent
It is not yet complete in the following respects:
1.==>We were able to avoid this by preparing a dedicatedtype
property ofCustomEvent
is not available. We know that we need to modifyEventKey::from_value()
.dispatchEvent()
.2. the test code is not written yet.Checklist
tests/unit
and/or in Rust for my feature if neededmake fix
to format JS and apply Clippy auto fixesmake check
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.