Commit 6355772 1 parent c630183 commit 6355772 Copy full SHA for 6355772
File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 43
43
"call-bind" : " ^1.0.8" ,
44
44
"define-properties" : " ^1.2.1" ,
45
45
"es-errors" : " ^1.3.0" ,
46
+ "get-proto" : " ^1.0.1" ,
47
+ "gopd" : " ^1.2.0" ,
46
48
"set-function-name" : " ^2.0.2"
47
49
},
48
50
"devDependencies" : {
Original file line number Diff line number Diff line change 2
2
3
3
var supportsDescriptors = require ( 'define-properties' ) . supportsDescriptors ;
4
4
var getPolyfill = require ( './polyfill' ) ;
5
- var gOPD = Object . getOwnPropertyDescriptor ;
5
+ var gOPD = require ( 'gopd' ) ;
6
6
var defineProperty = Object . defineProperty ;
7
- var TypeErr = TypeError ;
8
- var getProto = Object . getPrototypeOf ;
7
+ var $TypeError = require ( 'es-errors' ) ;
8
+ var getProto = require ( 'get-proto' ) ;
9
9
var regex = / a / ;
10
10
11
11
module . exports = function shimFlags ( ) {
12
12
if ( ! supportsDescriptors || ! getProto ) {
13
- throw new TypeErr ( 'RegExp.prototype.flags requires a true ES5 environment that supports property descriptors' ) ;
13
+ throw new $TypeError ( 'RegExp.prototype.flags requires a true ES5 environment that supports property descriptors' ) ;
14
14
}
15
15
var polyfill = getPolyfill ( ) ;
16
16
var proto = getProto ( regex ) ;
You can’t perform that action at this time.
0 commit comments