File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,9 @@ module.exports = generic
3535 */
3636
3737function generic ( parserOptions , parserOverrides ) {
38- var opts = { }
39-
4038 // Squash the options and the overrides down into one object
41- var squashKey
42- for ( squashKey in ( parserOptions || { } ) ) {
43- if ( Object . prototype . hasOwnProperty . call ( parserOptions , squashKey ) ) {
44- opts [ squashKey ] = parserOptions [ squashKey ]
45- }
46- }
47- for ( squashKey in ( parserOverrides || { } ) ) {
48- if ( Object . prototype . hasOwnProperty . call ( parserOverrides , squashKey ) ) {
49- opts [ squashKey ] = parserOverrides [ squashKey ]
50- }
51- }
39+ var opts = Object . create ( parserOptions )
40+ Object . assign ( opts , parserOverrides )
5241
5342 var limit = typeof opts . limit !== 'number'
5443 ? bytes . parse ( opts . limit || '100kb' )
You can’t perform that action at this time.
0 commit comments