Skip to content

initialization of ScenegraphLayer - Assertion failed #5276

Discussion options

You must be logged in to vote

You cannot serialize and deserialize typed arrays.

> var a = new Uint8Array([0, 1, 2, 3])
> a
Uint8Array(4) [0, 1, 2, 3]
> a = JSON.stringify(a)
"{"0":0,"1":1,"2":2,"3":3}"
> JSON.parse(a)
{0: 0, 1: 1, 2: 2, 3: 3}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sunyonglincanada
Comment options

Answer selected by sunyonglincanada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants