The copied date came back as a string
A numbers-only object survived a JSON roundtrip as expected. A Date field came back as text, changing what the next operation could do.

Getting past startup
I read a developer’s account of games failing to start on older Android WebViews because standard functions were missing. The author added compatibility code, explicitly limiting a JSON-based structuredClone replacement to the games’ plain JSON save data.
That boundary caught my attention. Supplying a missing function would not necessarily preserve every kind of value handled by the original.
I compared two small objects separately in Node.js: one containing numbers such as level 3 and coins 10, another containing a saved-at value created as a Date.
Converting to JSON and parsing it preserved the first object’s numbers. The second result still looked like a date, but its value was now a string rather than a Date.
This was an in-memory copying example. I did not run an old Android device or launch the original games.
Text shaped like a date
The date fixture used October 1, 2026. The native structuredClone result remained a Date, and getUTCFullYear returned 2026. The JSON-roundtrip result had no such method.
The JSON result had not displayed a nonsensical date. The characters representing the date remained. The operations available on a Date were no longer directly available on that string.
MDN’s JSON.stringify documentation explains why: Date’s toJSON returns an ISO-formatted string. Parsing that JSON without a separate conversion leaves a string.
If the storage format intentionally uses strings, that may be precisely the desired result. We can decide where to reconstruct a Date when reading it. Dropping the result into a place expecting a Date, however, changes the next operation’s assumptions.
A familiar date on the screen makes it easy to accept the copy. The first, numbers-only fixture working correctly could make that reassurance stronger.
The original author’s plain-JSON qualification now reads more concretely to me. It defines which input data the replacement was intended to handle.
Something to write beside the function name
When examining compatibility handling, I would check whether the function exists, then look at the actual inputs. Are they numbers and strings, or do Date objects arrive too? The name “copy” can cover different expectations.
These two fixtures do not validate a universal replacement. I have not audited every compatibility function in the original article or determined a minimum supported browser version.
They do suggest another line for the work note: the shapes of the accepted input and promised output. An intentional decision to store dates as strings belongs there too.
After confirming that the screen opens, I would read actual save data back and follow the next operation. Where a Date is expected, can the value still be used as one?
I return to the output that looked like a date. Before asking whether it looks right, I want to know what the next line intended to do with it.

