archives

« Bugzilla Issues Index

#3798 — Abstract operation Get called with List specification type


The abstract operation Get is specified to take an object as its first argument – see ES6, 7.3.1. Several algorithms in the 2015-01-12 spec draft however call it with an instance of the List specification type.

Some algorithms doing this:
9.2.3 LookupMatcher steps 2 and 5b.
9.2.6 LookupSupportedLocales steps 1 and 4b.

There may be more.


Fixed in rev7

(All changes marked with comments pointing to this bug)


The updated algorithms now use ToObject to convert from the List specification type to an object. ToObject however is not specified to handle such a conversion.

Allen, what's the best way in ES6 spec language to determine the length of a List?


(In reply to Norbert from comment #2)
> The updated algorithms now use ToObject to convert from the List
> specification type to an object. ToObject however is not specified to handle
> such a conversion.
>
> Allen, what's the best way in ES6 spec language to determine the length of a
> List?

I just need to do another pass and use `ArrayCreateFromList`


While fixing this, I learned a new thing about Word: If you select some text and insert a comment, then copy that text, it will copy the comment as well. All of the relevant fixes for this latest pass are marked with a comment containing "https://bugs.ecmascript.org/show_bug.cgi?id=3798#c2"