-
Notifications
You must be signed in to change notification settings - Fork 962
Closed
Labels
Description
[REQUIRED] Describe your environment
- Operating System version: Linux
- Firebase SDK version: 4.1.2
- Firebase Product: app
[REQUIRED] Describe the problem
Using the name of any Object.prototype
member as an app name causes issues when trying to initialize or retrieve an app.
Steps to reproduce:
// Here we get an error saying there already is a "valueOf" app
try {
firebase.initializeApp(options, 'valueOf');
} catch (err) {
console.error(err.code + ' - ' + err.message);
}
// This simply returns the Object.prototype.toString method
const app = firebase.app('toString');
console.log(app);
Relevant Code:
JSBin reproducing these issues: http://jsbin.com/cohijesema/edit?js,console