Add uncallableAndIsHTMLDDA support#41
Conversation
It's |
|
@bterlson the appveyor failure is expected (I just need to finish the work to make this fully tested on windows) |
|
@rwaldron Confirmed ch.exe does not have an API to get the ULEO :( I like everything about this PR but the API name. How about something like "getHTMLDDAObject" or something? |
|
The API name is as it is because the purpose of the function is to expose 1) an object with an [[IsHTMLDDA]] internal slot (if possible), but also 2) an object that when called in certain manners will throw a |
|
Alright, seems fine. Ready when you are @rwaldron. |
|
@bterlson I think the test262 API may be wrong; see tc39/test262#1304. I would suggest holding off on this pending resolution there. It may be that I'm just confused - I'm confused about something somewhere - but if I'm reading things right this API shouldn't be called |
|
per @bakkot's status update:
/me nods. I've updated to |
2da3680 to
ae6cab0
Compare
|
FYI, with the final changes to that API to make it |
|
Sorry for the delay (ended up away from office most of this week). I think this is fine (name and all) upon reflection. |
|
Erm, test262 changed to have the name be |
|
@jswalden I don't like prefixing a non-Boolean with |
|
Would just "HTMLDDA" be better for anyone? |
|
I'm not horribly happy about an "is" thing that's an object and not a function predicate, but I got over it enough to run with it. :-) But maybe my understanding is incorrect -- I though this really was trying to recreate the |
|
This project's goal is to create a useful utility and library for all sorts of cross-host-compatible scenarios. Test262 is an obvious place where this is important, but there are others too! Including the equally important scenario (IMO) of just experimenting or exploring compat differences where having nicely named APIs is important from a usability perspective. I'll go with your mild hesitance and change it to IsHTMLDDA. This will not be a popularly used API, and I'm also happy to make breaking changes in major versions if we want to change the name later ;) |
|
see 5297b51. |
To allow the harness to be used with very old versions of node that predate es6 support (like `node 0.10`). It used to be like this before tc39#41 seems like.
To allow the harness to be used with very old versions of node that predate es6 support (like `node 0.10`). It used to be like this before #41 seems like.
To support this issue created in Test262, @jswalden proposed the addition of this host api extension.