archives

« Bugzilla Issues Index

#3115 — Skip HasProperty in Object.prototype.toString


https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring

Step 14: Let hasTag be the result of HasProperty(O, @@toStringTag).

Why don't we just do Get and check if not undefined? Doing both HasProperty and Get requires two property lookups.


fixed in rev27 editor's draft


fixed in rev27 draft