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 7
7
Map,
8
8
NumberIsInteger,
9
9
Object,
10
+ ObjectDefineProperty,
10
11
Symbol,
11
12
SymbolFor,
12
13
SymbolToStringTag,
@@ -52,6 +53,9 @@ const kTimestamp = Symbol('timestamp');
52
53
const kBubbles = Symbol ( 'bubbles' ) ;
53
54
const kComposed = Symbol ( 'composed' ) ;
54
55
const kPropagationStopped = Symbol ( 'propagationStopped' ) ;
56
+
57
+ const isTrusted = ( ) => false ;
58
+
55
59
class Event {
56
60
constructor ( type , options ) {
57
61
if ( arguments . length === 0 )
@@ -67,8 +71,8 @@ class Event {
67
71
this [ kTimestamp ] = lazyNow ( ) ;
68
72
this [ kPropagationStopped ] = false ;
69
73
// isTrusted is special (LegacyUnforgeable)
70
- Object . defineProperty ( this , 'isTrusted' , {
71
- get ( ) { return false ; } ,
74
+ ObjectDefineProperty ( this , 'isTrusted' , {
75
+ get : isTrusted ,
72
76
enumerable : true ,
73
77
configurable : false
74
78
} ) ;
You can’t perform that action at this time.
0 commit comments