Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix namespace set test #2574

Merged
merged 1 commit into from
Apr 10, 2020
Merged

fix namespace set test #2574

merged 1 commit into from
Apr 10, 2020

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Apr 10, 2020

No description provided.

Copy link
Member

@leobalter leobalter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching my copy and pasta!

@leobalter
Copy link
Member

The error from JSC is interesting. cc @rkirsling

@leobalter leobalter merged commit 13d057d into tc39:master Apr 10, 2020
@shvaikalesh
Copy link
Member

shvaikalesh commented Apr 10, 2020

It seems like recent JSC change makes test262-harness fail initialization in strict mode, regressing https://test262.report results by merely a half.
test262/Runner.pm is unaffected.

EDIT: It is r259587 to blame.

@devsnek devsnek deleted the patch-1 branch April 10, 2020 22:37
@leobalter
Copy link
Member

all the tests captured here are not using the WebKit's Runner.pm but test262-harness. One should not affect the other for sure.

I don't have access to test262.report's code but it seems like something @rwaldron could get fixed or adjusted.

@shvaikalesh
Copy link
Member

shvaikalesh commented Apr 10, 2020

A stack trace from test262-harness:

$ test262-harness --hostType=jsc --hostPath='WebKitBuild/Debug/jsc' JSTests/test262/test/harness/dateConstants.js
internal/validators.js:125
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "to" argument must be of type string. Received type object
    at validateString (internal/validators.js:125:11)
    at Object.relative (path.js:1163:5)
    at Object.<anonymous> (/usr/local/lib/node_modules/test262-harness/bin/run.js:143:21)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
    at startup (internal/bootstrap/node.js:283:19)

Seems like a different TypeError. Either way, it is JSC that needs adjusting.

@rkirsling
Copy link
Member

@shvaikalesh I think that one is just because there's legitimately no test262Dir (it's just the error from path.relative(process.cwd(), null)).

With local clones of test262 and test262-harness:

λ DYLD_FRAMEWORK_PATH=WebKitBuild/Release node ../test262-harness/bin/run.js --hostType=jsc --hostPath=WebKitBuild/Release/jsc ../test262/test/harness/dateConstants.js
FAIL ../test262/test/harness/dateConstants.js (strict mode)
  Expected no error, got TypeError: Attempted to assign to readonly property.

Ran 2 tests
1 passed
1 failed

@shvaikalesh
Copy link
Member

shvaikalesh commented Apr 14, 2020

Thank you @rkirsling.

With great help of --saveCompiledTests CLI parameter, I tracked the TypeError down to

$262.IsHTMLDDA = function() {};

line, which legitimately fails because IsHTMLDDA property has no setter.
This regression was introduced in r259587, now being fixed in webkit.org/b/210470.

Also, since $262.IsHTMLDDA is properly implemented in JSC, it can be removed from eshost: tc39/eshost#105.

justingrant added a commit to justingrant/test262 that referenced this pull request Jun 9, 2023
Edits ~300 Temporal tests to account for changes in
tc39/proposal-temporal#2574.

A subsequent commit will fix the remaining ~40 broken
tests after we figure out how to adapt our Proxy-based
observability test implementation to the no-object-coercion
restrictions added in tc39#2574.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 9, 2023
Edits ~300 Temporal tests to account for changes in
tc39/proposal-temporal#2574.

A subsequent commit will fix the remaining ~40 broken
tests after we figure out how to adapt our Proxy-based
observability test implementation to the no-object-coercion
restrictions added in tc39#2574.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 9, 2023
Edits ~300 Temporal tests to account for changes in
tc39/proposal-temporal#2574.

A subsequent commit will fix the remaining ~40 broken
tests after we figure out how to adapt our Proxy-based
observability test implementation to the no-object-coercion
restrictions added in tc39#2574.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 9, 2023
Edits ~300 Temporal tests to account for changes in
tc39/proposal-temporal#2574.

A subsequent commit will fix the remaining ~40 broken
tests after we figure out how to adapt our Proxy-based
observability test implementation to the no-object-coercion
restrictions added in tc39#2574.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 9, 2023
Edits ~300 Temporal tests to account for changes in
tc39/proposal-temporal#2574.

A subsequent commit will fix the remaining ~40 broken
tests after we figure out how to adapt our Proxy-based
observability test implementation to the no-object-coercion
restrictions added in tc39#2574.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 10, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 10, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 11, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
justingrant added a commit to justingrant/test262 that referenced this pull request Jun 15, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
justingrant added a commit to justingrant/test262 that referenced this pull request Jul 16, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
justingrant added a commit to justingrant/test262 that referenced this pull request Jul 17, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
justingrant added a commit to justingrant/test262 that referenced this pull request Jul 17, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
ptomato pushed a commit that referenced this pull request Jul 18, 2023
Edits Temporal tests to account for changes in
tc39/proposal-temporal#2574.

This PR stops coercing non-string primitive inputs to strings
in Temporal methods, to avoid cases where numbers
are coerced to syntactically valid but often unexpected
string results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants