Skip to content

Commit

Permalink
Merge pull request #2890 from xconverge/fix-remapping-quirk-with-map
Browse files Browse the repository at this point in the history
Fix issue with incorrectly finding and triggering certain remappings
  • Loading branch information
xconverge authored Jul 25, 2018
2 parents 3f2b87d + 92315dd commit b83139c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configuration/remapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ export class Remapper implements IRemapper {
}

private _getRemappings(): { [key: string]: IKeyRemapping } {
let remappings: { [key: string]: IKeyRemapping } = {};
// Create a null object so that there is no __proto__
let remappings: { [key: string]: IKeyRemapping } = Object.create(null);
for (let remapping of configuration[this._configKey] as IKeyRemapping[]) {
let debugMsg = `before=${remapping.before}. `;

Expand Down

0 comments on commit b83139c

Please sign in to comment.