Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox warning: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create bundle.js:17712 #3

Open
deathcap opened this issue Jun 16, 2014 · 0 comments

Comments

@deathcap
Copy link
Owner

Firefox 30.0 warns:

TypeError: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create bundle.js:17712

    child.__proto__ = parent.__proto__; // line 17712

in function clone(parent, circular), of "clone" module https://www.npmjs.org/package/clone, used in:

clone = require 'clone'clone: () ->
    return new ItemPile(@item, @count, clone(@tags, false))
…
 splitPile: (n) ->return new ItemPile(@item, n, clone(@tags, false))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant