[whatwg] structured clone algorithm should be defined for primitive values
Ian Hickson
ian at hixie.ch
Mon Jan 31 15:14:36 PST 2011
On Fri, 28 Jan 2011, David Flanagan wrote:
>
> The structured clone algorithm is currently defined only for object
> inputs and doesn't say what should happen when a primitive value is
> passed to it. (The internal structured cloning algorithm handles
> primitives, but the outer level one does not.)
>
> Browser implementations allow primitives such as strings to be passed to
> History.pushState(), window.postMessage() and other methods that
> reference the structured clone algorithm.
>
> I think you can fix this by changing "object" to "value" in four places
Fixed. Thanks.
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list