diff --git a/packages/ember-application/lib/system/application-instance.js b/packages/ember-application/lib/system/application-instance.js index ba853cf5b6e..e9e7e12eebf 100644 --- a/packages/ember-application/lib/system/application-instance.js +++ b/packages/ember-application/lib/system/application-instance.js @@ -156,9 +156,8 @@ let ApplicationInstance = EmberObject.extend(RegistryProxy, ContainerProxy, { options = new BootOptions(options); let registry = this.__registry__; - let environment = options.toEnvironment(); - registry.register('-environment:main', environment, { instantiate: false }); + registry.register('-environment:main', options.toEnvironment(), { instantiate: false }); registry.injection('view', '_environment', '-environment:main'); registry.injection('route', '_environment', '-environment:main');