Uh oh!
There was an error while loading. Please reload this page.
test_runner: add SuiteContext class - #45687
Conversation
added SuiteContext class to replace object literal Fixes: nodejs#45641 Refs: nodejs#45641 (comment)
nodejs-github-bot
commented
Nov 30, 2022
SuiteContext class
To bring consistency with the docs, the docs mention the existence of SuiteContext class and it being the first argument passed to the functions but the actual class didn't exist and the arg list was empty, hence simply added the class here |
aduh95
commented
Nov 30, 2022
Wouldn't fixing the docs be a more reasonable approach? To be clear, I'm not blocking this PR, but I'm skeptical that having a class is what makes the most sense here. |
I guess the only reason I can give is that it was faster to make the change in the code than having to remove all refs in the doc as refed #45641 (comment) here too 😅😅 |
debadree25
commented
Nov 30, 2022
would be happy to go the doc approach too if you think that would be best practice! |
tniessen
commented
Dec 1, 2022
I think @aduh95's point is valid. Is this class necessary or useful? |
cjihrig
commented
Dec 1, 2022
I think it's useful for matching the other context objects and the existing documentation. |
MoLow
commented
Dec 1, 2022
FWIW I do think its better to change the code than the documentation, since this name dose help understanding the responsibility of this object |
nodejs-github-bot
commented
Dec 2, 2022
Landed in 8541b3a |
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Semigradsky
commented
Dec 13, 2022
Will this be merged to 18.x branch? |
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
added SuiteContext class to replace object literal Fixes: #45641 Refs: #45641 (comment) PR-URL: #45687 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
added SuiteContext class to replace object literal
Fixes: #45641
Refs: #45641 (comment)