Descriptionbindings: Do not skip symbols in the JS -> record<> conversion.
We were previously skipping all symbols when calling GetOwnPropertyNames()
due to https://github.com/heycam/webidl/issues/294 being unresolved at the
time the code was written, as well as to maintain compatibility with Gecko,
which did the same at the time.
That GitHub issue has since been resolved: enumerable symbols should not be
skipped but rather just throw a TypeError when a string conversion function
is called on it. Gecko is also being updated, and this CL adjusts our code
accordingly.
The new tests being added to headers-record.html come from Boris Zbarsky
<bzbarsky@mit.edu> and were originally written in
https://bugzilla.mozilla.org/show_bug.cgi?id=1366032. They are being
included here mostly to both help test the CL, as I believe they will be
landed in Gecko and synced to web-platform-tests before this CL lands and we
end up upstreaming the changes.
While here, remove a duplicate test case in NativeValueTraitsImplTest.
BUG=724481
R=bashi@chromium.org,haraken@chromium.org,yukishiino@chromium.org
Review-Url: https://codereview.chromium.org/2900743002
Cr-Commit-Position: refs/heads/master@{#473905}
Committed: https://chromium.googlesource.com/chromium/src/+/0fd77db4e8e5e8ad1ebdb2bd19bd0a1092c3ca3b
Patch Set 1 #Patch Set 2 : Add DCHECK #Patch Set 3 : Fix tests #
Messages
Total messages: 25 (12 generated)
|