Skip to content

Commit

Permalink
Merge pull request #450 from ember-cli/remove-defunct-optimization
Browse files Browse the repository at this point in the history
remove now defunct v8 optimization
  • Loading branch information
stefanpenner authored Nov 19, 2019
2 parents 4a4aff7 + bc973e3 commit b69ad35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 3 additions & 4 deletions addon/resolvers/classic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import EmberObject, { get, computed } from '@ember/object';
import { dasherize, classify, underscore } from '@ember/string';
import { DEBUG } from '@glimmer/env';
import classFactory from '../../utils/class-factory';
import makeDictionary from '../../utils/make-dictionary';

if (typeof requirejs.entries === 'undefined') {
requirejs.entries = requirejs._eak_seen;
Expand Down Expand Up @@ -133,9 +132,9 @@ const Resolver = EmberObject.extend({
this._moduleRegistry = new ModuleRegistry();
}

this._normalizeCache = makeDictionary();
this._normalizeCache = Object.create(null);

this.pluralizedTypes = this.pluralizedTypes || makeDictionary();
this.pluralizedTypes = this.pluralizedTypes || Object.create(null);

if (!this.pluralizedTypes.config) {
this.pluralizedTypes.config = 'config';
Expand Down Expand Up @@ -408,7 +407,7 @@ const Resolver = EmberObject.extend({
knownForType(type) {
let moduleKeys = this._moduleRegistry.moduleNames();

let items = makeDictionary();
let items = Object.create(null);
for (let index = 0, length = moduleKeys.length; index < length; index++) {
let moduleName = moduleKeys[index];
let fullname = this.translateToContainerFullname(type, moduleName);
Expand Down
6 changes: 0 additions & 6 deletions addon/utils/make-dictionary.js

This file was deleted.

0 comments on commit b69ad35

Please sign in to comment.