GNOME Bugzilla – Bug 722286
ByteArray: don't call eval() just to retrieve a prototype
Last modified: 2014-01-15 21:45:11 UTC
If using a global variable to store ByteArray.prototype is wrong, we can use a slot on the global object. Also, while we're there we can rewrite the JS import code in terms of JSAPI calls.
Created attachment 266377 [details] [review] ByteArray: don't call eval() just to retrieve a prototype
Review of attachment 266377 [details] [review]: If we only do this once per context, because of the global slot, I don't think the eval(); will hurt us here, so I'd like to keep it for readability.
Pushed after addressing comments. Attachment 266377 [details] pushed as 5b7c1d3 - ByteArray: don't call eval() just to retrieve a prototype