Skip to content

[App] Certain app names cause issues #69

@jsayol

Description

@jsayol

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions