This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The links to ES6 in WebIDL go to <http://people.mozilla.org/~jorendorff/es6-draft.html>. That says: """ The value of a [[NativeBrand]] property is a single member of this set of enumerated values: NativeFunction, NativeArray, StringWrapper, BooleanWrapper, NumberWrapper, NativeMath, NativeDate, NativeRegExp, NativeError, NativeJSON, NativeArguments, NativePrivateName. """ But this says function objects have a [[NativeBrand]] of Function, which isn't on the list: http://dev.w3.org/2006/webapi/WebIDL/#dfn-function-object Maybe it should be NativeFunction?
[[NativeBrand]] has been renamed [[BuiltinBrand]] in the latest revision of the ES6 specification draft.
You can file bugs against the ECMAScript 6 draft. at bugs.ecmascript.com As Rick says, [[NativeBrand]] is now called [[BuiltinBrand]] and section 15.2.4.2 lists BuiltinFunction as one of its value. Object semantic specification details in the the ES6 draft that relate to things like this are still under going massive changes. I recommend simply waiting a few months before typing to sync to the ES6 spec. at this level.
(In reply to comment #2) > You can file bugs against the ECMAScript 6 draft. at bugs.ecmascript.com > > As Rick says, [[NativeBrand]] is now called [[BuiltinBrand]] and section > 15.2.4.2 lists BuiltinFunction as one of its value. > > Object semantic specification details in the the ES6 draft that relate to > things like this are still under going massive changes. I recommend simply > waiting a few months before typing to sync to the ES6 spec. at this level. OK, thanks for the info Rick and Allen. If you could ping me Allen when this stuff is most stable I'll rework Web IDL then.
[[NativeBrand]] no longer appears in Web IDL, so I guess this has been fixed. I suspect that it's related to the class string/@@toStringTag stuff? Which is reasonable, although there's still the contentious https://www.w3.org/Bugs/Public/show_bug.cgi?id=28244 open.