Repository navigation
feat(nkwebkit): implement JSON Value::writeJSON - #17864
oneandonlydean merged 12 commits into
Conversation
Progress report (d3206ad → 9cd5236)📈 System libraries: 41.62% (+0.01%, +2 implemented functions) ✅ 2 implemented
Changed libraries (implemented exports)
|
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
e5f6c34 to
419f926
Compare
|
Rebased onto main.
|
|
One change is needed before this can pass: the licence header. core/libs/prx/libSceNKWebKit/src/WtfJson.cpp has no licence text, and the debt entries for Value::writeJSON and ArrayBase::writeJSON say the bodies (and the string escaping) are adapted from WebKit's JSONValues.cpp. Ported code has to keep its licence notice verbatim. Please add the copyright and licence header from the top of JSONValues.cpp at the WebKit revision your debt entry cites, copied as it is. WtfNumberFormat.cpp already carries the V8 header, so that file is fine. Other NKWebKit files on main, such as BmallocFreeList.cpp, show the convention. The escaping and the null, bool, number and string cases look right against upstream. If you can, a test with a nested array, a large or exponent double and negative zero would cover what the current tests miss. |
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
Hi @alvaroelpob, some evidence that might matter for the JSON writer here. I'm not asking for anything in particular; I'd just rather you see it before this merges. I got a decrypted PS4 The pinned StringBuilderJSON.cpp /
I checked the width difference directly. With the pinned 11.x dispatchers as an oracle (#23061's test), every response carrying a 16-bit string comes back 16-bit there and 8-bit through the 2020 writer. The text was identical in my runs, which were ASCII-only. I didn't check whether If you'd like, I can send the oracle setup. |
|
@RiverWhy thanks, this is useful. The 5,120 of 5,161 export match and the |
…-backend-dispatcher
What
Implement WTF::JSONImpl::Value::writeJSON for scalar values and ArrayBase::writeJSON for recursive array serialization using the pinned PS5 WebKit behavior.
Tested
Linux:
suite.py feat/nkwebkit-json-value-serializationat 9cd5236: CTest 4813/4813 passed; conventions passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)