mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
fix(op_crates/web) make isTrusted not constructable (#8337)
This commit is contained in:
parent
b255a05f18
commit
c7804c06ad
2 changed files with 16 additions and 3 deletions
|
@ -98,9 +98,11 @@
|
|||
return "relatedTarget" in event;
|
||||
}
|
||||
|
||||
function isTrusted() {
|
||||
return eventData.get(this).isTrusted;
|
||||
}
|
||||
const isTrusted = Object.getOwnPropertyDescriptor({
|
||||
get isTrusted() {
|
||||
return eventData.get(this).isTrusted;
|
||||
},
|
||||
}, "isTrusted").get;
|
||||
|
||||
class Event {
|
||||
#canceledFlag = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue