We can share the shorthand serializing code to fix this.
<rdar://problem/105582183>
Pull request: https://github.com/WebKit/WebKit/pull/10323