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;
3434export const map = < T > ( opt_initial : T | null | undefined ) : object => {
3535 const object = Object . create ( null ) ;
3636 if ( opt_initial ) {
37- Object . assign ( object , opt_initial ) ;
37+ Object . assign ( object , { ... opt_initial } ) ;
3838 }
3939
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 ;
4244} ;
4345
4446/**
You can’t perform that action at this time.
0 commit comments