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
In Firefox, traceur runtime causes performance-related warning #1367
Comments
Don't worry about it. We need to assign
|
Or complain to Firefox about annoying messages. On Mon, Sep 22, 2014 at 11:30 AM, Erik Arvidsson notifications@github.com
|
+1 to that. |
I reopened a bug on bugzilla.mozilla.org and linked to this discussion, don't hesitate to chime in: https://bugzilla.mozilla.org/show_bug.cgi?id=1049041 |
would this be avoided if we just used the
The example I grabbed from this page I dont see many ref's to proto in the src and they all seem replaceable with bearing in mind though I might be out of my league on this one :\ |
Just loading the traceur-runtime in a page in Firefox (Nightly 35) causes the following warning to be logged in the console:
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
I've found some explanation about this message in this bug comment. The workaround seem to be to replace the use of proto with
Object.create( otherClass.protototype )
, see Object.create inheritance.The text was updated successfully, but these errors were encountered: