File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 77 Map,
88 NumberIsInteger,
99 Object,
10+ ObjectDefineProperty,
1011 Symbol,
1112 SymbolFor,
1213 SymbolToStringTag,
@@ -57,6 +58,9 @@ const kTimestamp = Symbol('timestamp');
5758const kBubbles = Symbol ( 'bubbles' ) ;
5859const kComposed = Symbol ( 'composed' ) ;
5960const kPropagationStopped = Symbol ( 'propagationStopped' ) ;
61+
62+ const isTrusted = ( ) => false ;
63+
6064class Event {
6165 constructor ( type , options ) {
6266 if ( arguments . length === 0 )
@@ -72,8 +76,8 @@ class Event {
7276 this [ kTimestamp ] = lazyNow ( ) ;
7377 this [ kPropagationStopped ] = false ;
7478 // isTrusted is special (LegacyUnforgeable)
75- Object . defineProperty ( this , 'isTrusted' , {
76- get ( ) { return false ; } ,
79+ ObjectDefineProperty ( this , 'isTrusted' , {
80+ get : isTrusted ,
7781 enumerable : true ,
7882 configurable : false
7983 } ) ;
You can’t perform that action at this time.
0 commit comments