File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var has = require ( 'has' ) ;
3
+ var own = { } . hasOwnProperty ;
4
4
5
5
module . exports = stringify ;
6
6
@@ -11,17 +11,17 @@ function stringify(value) {
11
11
}
12
12
13
13
/* Node. */
14
- if ( has ( value , 'position' ) || has ( value , 'type' ) ) {
14
+ if ( own . call ( value , 'position' ) || own . call ( value , 'type' ) ) {
15
15
return location ( value . position ) ;
16
16
}
17
17
18
18
/* Location. */
19
- if ( has ( value , 'start' ) || has ( value , 'end' ) ) {
19
+ if ( own . call ( value , 'start' ) || own . call ( value , 'end' ) ) {
20
20
return location ( value ) ;
21
21
}
22
22
23
23
/* Position. */
24
- if ( has ( value , 'line' ) || has ( value , 'column' ) ) {
24
+ if ( own . call ( value , 'line' ) || own . call ( value , 'column' ) ) {
25
25
return position ( value ) ;
26
26
}
27
27
Original file line number Diff line number Diff line change 22
22
"files" : [
23
23
" index.js"
24
24
],
25
- "dependencies" : {
26
- "has" : " ^1.0.1"
27
- },
25
+ "dependencies" : {},
28
26
"devDependencies" : {
29
27
"browserify" : " ^14.1.0" ,
30
28
"esmangle" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments