The document-title.js file in vendor is not a module, nor is it wrapped in an IIFE to ensure it doesn't pollute the global scope. Currently, the line
var Promise = Ember.RSVP.Promise;
overwrites self.Promise in global scope, changing promises used in tests via QUnit/ember-qunit in addition to any other libraries that rely on native promises.
This PR wraps this file in an IIFE to ensure we don't overwrite the global native promise implementation.
The
document-title.js
file in vendor is not a module, nor is it wrapped in an IIFE to ensure it doesn't pollute the global scope. Currently, the lineoverwrites
self.Promise
in global scope, changing promises used in tests via QUnit/ember-qunit in addition to any other libraries that rely on native promises.This PR wraps this file in an IIFE to ensure we don't overwrite the global native promise implementation.