File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
Map,
8
8
NumberIsInteger,
9
9
Object,
10
+ ObjectDefineProperty,
10
11
Symbol,
11
12
SymbolFor,
12
13
SymbolToStringTag,
@@ -57,6 +58,9 @@ const kTimestamp = Symbol('timestamp');
57
58
const kBubbles = Symbol ( 'bubbles' ) ;
58
59
const kComposed = Symbol ( 'composed' ) ;
59
60
const kPropagationStopped = Symbol ( 'propagationStopped' ) ;
61
+
62
+ const isTrusted = ( ) => false ;
63
+
60
64
class Event {
61
65
constructor ( type , options ) {
62
66
if ( arguments . length === 0 )
@@ -72,8 +76,8 @@ class Event {
72
76
this [ kTimestamp ] = lazyNow ( ) ;
73
77
this [ kPropagationStopped ] = false ;
74
78
// isTrusted is special (LegacyUnforgeable)
75
- Object . defineProperty ( this , 'isTrusted' , {
76
- get ( ) { return false ; } ,
79
+ ObjectDefineProperty ( this , 'isTrusted' , {
80
+ get : isTrusted ,
77
81
enumerable : true ,
78
82
configurable : false
79
83
} ) ;
You can’t perform that action at this time.
0 commit comments