File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
- .vscode
2
- node_modules
1
+ .vscode /
2
+ node_modules /
3
+ lib /** /*
4
+ .DS_Store
5
+ tsconfig.tsbuildinfo
Original file line number Diff line number Diff line change @@ -34,11 +34,13 @@ const _hasOwn = Object.prototype.hasOwnProperty;
34
34
export const map = < T > ( opt_initial : T | null | undefined ) : object => {
35
35
const object = Object . create ( null ) ;
36
36
if ( opt_initial ) {
37
- Object . assign ( object , opt_initial ) ;
37
+ Object . assign ( object , { ... opt_initial } ) ;
38
38
}
39
39
40
- // FIXME(@DerekNonGeneric): Should we be creating objects w/ null protos?
41
- return { ...opt_initial } ;
40
+ // FIXME(@DerekNonGeneric): Should we be returning these newly-created
41
+ // objects w/ `null` prototypes instead of `undefined` ones, (which is
42
+ // what had previously been doing and are still currently testing for)?
43
+ return object ;
42
44
} ;
43
45
44
46
/**
You can’t perform that action at this time.
0 commit comments