Bug 187526 - Remove unnecessary Test262 harness file and implement $262.IsHTMLDDA
Summary: Remove unnecessary Test262 harness file and implement $262.IsHTMLDDA
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Enhancement
Assignee: Alexey Shvayka
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-07-10 10:14 PDT by Rick Waldron
Modified: 2020-04-13 18:35 PDT (History)
11 users (show)

See Also:


Attachments
patch (4.09 KB, patch)
2018-07-10 10:48 PDT, Rick Waldron
no flags Details | Formatted Diff | Diff
Patch (8.41 KB, patch)
2020-04-05 13:45 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff
Patch (11.52 KB, patch)
2020-04-06 04:09 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Waldron 2018-07-10 10:14:28 PDT
The functionality provided by this file is built-in. 

I confirmed this by: 

- Building JSC with a patch that enables SharedArrayBuffer and Atomics (https://gist.github.com/rwaldron/89ed9a4bb7a459db8d54c8fe77ead4b1)
- Removing SharedArrayBuffer and Atomics from the skip list
- Running the Atomics tests from Test262/master


with agent.js: 

    342 tests run
    59 test files skipped
    27 tests failed in total
    27 tests newly fail
    0 tests newly pass
    Saved all the results in /Users/rwaldron/clonez/WebKit/test262-results/results.yaml
    Summarizing results...
    See the summaries and results in the /Users/rwaldron/clonez/WebKit/test262-results.

    Done in 13.48 seconds!


without agent.js: 

    342 tests run
    59 test files skipped
    27 tests failed in total
    27 tests newly fail
    0 tests newly pass
    Saved all the results in /Users/rwaldron/clonez/WebKit/test262-results/results.yaml
    Summarizing results...
    See the summaries and results in the /Users/rwaldron/clonez/WebKit/test262-results.

    Done in 13.21 seconds!
Comment 1 Rick Waldron 2018-07-10 10:48:51 PDT
Created attachment 344708 [details]
patch
Comment 2 Alexey Shvayka 2020-04-05 13:45:33 PDT
Created attachment 395524 [details]
Patch
Comment 3 Alexey Shvayka 2020-04-05 13:56:47 PDT
$262.IsHTMLDDA tests

  test/annexB/language/expressions/yield/star-iterable-return-emulates-undefined-throws-when-called.js
  test/annexB/language/statements/for-await-of/iterator-close-return-emulates-undefined-throws-when-called.js
  test/annexB/language/statements/for-of/iterator-close-return-emulates-undefined-throws-when-called.js

are still failing because JSC partly implements https://github.com/tc39/ecma262/pull/1408.
Comment 4 Ross Kirsling 2020-04-05 17:35:26 PDT
This works, but I wonder if it would be better to make Masquerader callable -- seems like this is an omission that just wasn't necessary until now?
Comment 5 Alexey Shvayka 2020-04-06 04:09:59 PDT
Created attachment 395557 [details]
Patch

Return callable masquerader.
Comment 6 Alexey Shvayka 2020-04-06 04:18:04 PDT
(In reply to Ross Kirsling from comment #4)
> This works, but I wonder if it would be better to make Masquerader callable
> -- seems like this is an omission that just wasn't necessary until now?

That is an awesome improvement, thank you. I thought there are quite a few tests for non-callable masquerader, yet is seems like one assertion only. Given that there is only one masquerader in the wild, and it is callable, we would rather use JSFunction::createFunctionThatMasqueradesAsUndefined.
Comment 7 EWS 2020-04-06 12:02:01 PDT
Committed r259587: <https://trac.webkit.org/changeset/259587>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 395557 [details].
Comment 8 Radar WebKit Bug Importer 2020-04-06 12:03:21 PDT
<rdar://problem/61352863>