@@ -625,24 +625,24 @@ function isInstanceof(object, proto) {
625625}
626626
627627// Special-case for some builtin prototypes in case their `constructor` property has been tampered.
628- const wellKnownPrototypes = new SafeMap ( ) ;
629- wellKnownPrototypes . set ( ArrayPrototype , { name : 'Array' , constructor : Array } ) ;
630- wellKnownPrototypes . set ( ArrayBufferPrototype , { name : 'ArrayBuffer' , constructor : ArrayBuffer } ) ;
631- wellKnownPrototypes . set ( FunctionPrototype , { name : 'Function' , constructor : Function } ) ;
632- wellKnownPrototypes . set ( MapPrototype , { name : 'Map' , constructor : Map } ) ;
633- wellKnownPrototypes . set ( SetPrototype , { name : 'Set' , constructor : Set } ) ;
634- wellKnownPrototypes . set ( ObjectPrototype , { name : 'Object' , constructor : Object } ) ;
635- wellKnownPrototypes . set ( TypedArrayPrototype , { name : 'TypedArray' , constructor : TypedArray } ) ;
636- wellKnownPrototypes . set ( RegExpPrototype , { name : 'RegExp' , constructor : RegExp } ) ;
637- wellKnownPrototypes . set ( DatePrototype , { name : 'Date' , constructor : Date } ) ;
638- wellKnownPrototypes . set ( DataViewPrototype , { name : 'DataView' , constructor : DataView } ) ;
639- wellKnownPrototypes . set ( ErrorPrototype , { name : 'Error' , constructor : Error } ) ;
640- wellKnownPrototypes . set ( BooleanPrototype , { name : 'Boolean' , constructor : Boolean } ) ;
641- wellKnownPrototypes . set ( NumberPrototype , { name : 'Number' , constructor : Number } ) ;
642- wellKnownPrototypes . set ( StringPrototype , { name : 'String' , constructor : String } ) ;
643- wellKnownPrototypes . set ( PromisePrototype , { name : 'Promise' , constructor : Promise } ) ;
644- wellKnownPrototypes . set ( WeakMapPrototype , { name : 'WeakMap' , constructor : WeakMap } ) ;
645- wellKnownPrototypes . set ( WeakSetPrototype , { name : 'WeakSet' , constructor : WeakSet } ) ;
628+ const wellKnownPrototypes = new SafeMap ( )
629+ . set ( ArrayPrototype , { name : 'Array' , constructor : Array } )
630+ . set ( ArrayBufferPrototype , { name : 'ArrayBuffer' , constructor : ArrayBuffer } )
631+ . set ( FunctionPrototype , { name : 'Function' , constructor : Function } )
632+ . set ( MapPrototype , { name : 'Map' , constructor : Map } )
633+ . set ( SetPrototype , { name : 'Set' , constructor : Set } )
634+ . set ( ObjectPrototype , { name : 'Object' , constructor : Object } )
635+ . set ( TypedArrayPrototype , { name : 'TypedArray' , constructor : TypedArray } )
636+ . set ( RegExpPrototype , { name : 'RegExp' , constructor : RegExp } )
637+ . set ( DatePrototype , { name : 'Date' , constructor : Date } )
638+ . set ( DataViewPrototype , { name : 'DataView' , constructor : DataView } )
639+ . set ( ErrorPrototype , { name : 'Error' , constructor : Error } )
640+ . set ( BooleanPrototype , { name : 'Boolean' , constructor : Boolean } )
641+ . set ( NumberPrototype , { name : 'Number' , constructor : Number } )
642+ . set ( StringPrototype , { name : 'String' , constructor : String } )
643+ . set ( PromisePrototype , { name : 'Promise' , constructor : Promise } )
644+ . set ( WeakMapPrototype , { name : 'WeakMap' , constructor : WeakMap } )
645+ . set ( WeakSetPrototype , { name : 'WeakSet' , constructor : WeakSet } ) ;
646646
647647function getConstructorName ( obj , ctx , recurseTimes , protoProps ) {
648648 let firstProto ;
0 commit comments