Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ defaultPrevented
Method
defaultPrevented
lib/internal/event_target.js:235–239 ·
view source on GitHub ↗
* @type {boolean}
()
Source
from the content-addressed store, hash-verified
233
* @
type
{boolean}
234
*/
235
get defaultPrevented() {
236
if
(!isEvent(this))
237
throw
new
ERR_INVALID_THIS(
'Event'
);
238
return
this.#cancelable && this.#defaultPrevented;
239
}
240
241
/**
242
* @
type
{number}
Callers
nothing calls this directly
Calls
1
isEvent
Function · 0.85
Tested by
no test coverage detected