Skip to content

Commit

Permalink
Fix test262 driver error around IsAsyncTest function
Browse files Browse the repository at this point in the history
Signed-off-by: Seonghyun Kim <[email protected]>
  • Loading branch information
ksh8281 authored and clover2123 committed Jul 25, 2024
1 parent adf7359 commit 96d165f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions tools/test/test262/excludelist.orig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@
<test id="built-ins/Array/fromAsync/thisarg-primitive-sloppy"><reason>TODO</reason></test>
<test id="built-ins/Array/fromAsync/thisarg-primitive-strict"><reason>TODO</reason></test>
<test id="built-ins/ArrayBuffer/prototype/resizable/detached-buffer"><reason>TODO</reason></test>
<test id="built-ins/AsyncFromSyncIteratorPrototype/next/absent-value-not-passed"><reason>TODO</reason></test>
<test id="built-ins/AsyncFromSyncIteratorPrototype/return/absent-value-not-passed"><reason>TODO</reason></test>
<test id="built-ins/AsyncFromSyncIteratorPrototype/return/return-null"><reason>TODO</reason></test>
<test id="built-ins/AsyncGeneratorPrototype/next/request-queue-await-order"><reason>TODO</reason></test>
<test id="built-ins/AsyncGeneratorPrototype/return/return-suspendedStart-broken-promise"><reason>TODO</reason></test>
<test id="built-ins/DataView/custom-proto-access-resizes-buffer-invalid-by-length"><reason>TODO</reason></test>
<test id="built-ins/DataView/custom-proto-access-resizes-buffer-invalid-by-offset"><reason>TODO</reason></test>
Expand Down Expand Up @@ -6641,12 +6637,6 @@
<test id="language/expressions/async-generator/eval-var-scope-syntax-err"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/generator-created-after-decl-inst"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/named-eval-var-scope-syntax-err"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body-in-arrow"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body-in-eval"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body-in-arrow"><reason>TODO</reason></test>
<test id="language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body-in-eval"><reason>TODO</reason></test>
<test id="language/expressions/await/await-awaits-thenable-not-callable"><reason>TODO</reason></test>
<test id="language/expressions/await/await-awaits-thenables"><reason>TODO</reason></test>
<test id="language/expressions/await/await-awaits-thenables-that-throw"><reason>TODO</reason></test>
Expand Down Expand Up @@ -6728,8 +6718,6 @@
<test id="language/expressions/dynamic-import/assignment-expression/yield-expr"><reason>TODO</reason></test>
<test id="language/expressions/dynamic-import/assignment-expression/yield-identifier"><reason>TODO</reason></test>
<test id="language/expressions/dynamic-import/custom-primitive"><reason>TODO</reason></test>
<test id="language/expressions/dynamic-import/for-await-resolution-and-error-agen"><reason>TODO</reason></test>
<test id="language/expressions/dynamic-import/for-await-resolution-and-error-agen-yield"><reason>TODO</reason></test>
<test id="language/expressions/dynamic-import/import-attributes/2nd-param-get-with-error"><reason>TODO</reason></test>
<test id="language/expressions/dynamic-import/import-attributes/2nd-param-with-enumeration-abrupt"><reason>TODO</reason></test>
<test id="language/expressions/dynamic-import/import-attributes/2nd-param-with-enumeration-enumerable"><reason>TODO</reason></test>
Expand Down Expand Up @@ -6871,7 +6859,6 @@
<test id="language/statements/class/subclass/default-constructor-spread-override"><reason>TODO</reason></test>
<test id="language/statements/for-await-of/async-func-decl-dstr-array-elem-target-simple-strict"><reason>TODO</reason></test>
<test id="language/statements/for-await-of/head-lhs-async"><reason>TODO</reason></test>
<test id="language/statements/for-await-of/iterator-close-non-throw-get-method-is-null"><reason>TODO</reason></test>
<test id="language/statements/for-await-of/iterator-close-throw-get-method-abrupt"><reason>TODO</reason></test>
<test id="language/statements/for-await-of/iterator-close-throw-get-method-non-callable"><reason>TODO</reason></test>
<test id="language/statements/for-in/dstr/array-elem-nested-array-invalid"><reason>TODO</reason></test>
Expand Down
2 changes: 1 addition & 1 deletion tools/test/test262/test262.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def GetDriverSource(self):
self.suite.GetInclude("assert.js")

# Escargot: some async test are does not returns True for self.IsAsyncTest()
if self.IsAsyncTest() or "Atomics" in self.GetFeatureList():
if self.IsAsyncTest() or "Atomics" in self.GetFeatureList() or "async-iteration" in self.GetFeatureList():
source = source + \
self.suite.GetInclude("timer.js") + \
self.suite.GetInclude("doneprintHandle.js").replace('print', self.suite.print_handle)
Expand Down

0 comments on commit 96d165f

Please sign in to comment.