Saturday, November 11, 2017

Re: Calling methods on Uint8Array is causing a ReferenceError in Super Dev Mode...

Can you run super dev mode with `-style PRETTY`? The line you are pointing at should only error out like that if createUint8Array returned null, but it would be good to confirm that in PRETTY you see the name of the local variable.

.byteLength() in the native code is just defined as access on the .byteLength field of the view, so that seems sane enough - should only error out of there is no Uint8Array. But createUint8Array should just delegate to Uint8ArrayNative.create(buffer, 0, buffer.byteLength()) anyway, which just calls the JS constructor, so that doesn't make a ton of sense either...

Try PRETTY, and maybe turn off sourcemaps so you can see what is generated - perhaps there is a bug and SDM is making a mistake, or maybe something else will be clear to you once you see the sources (probably in your own JSNI).

Finally, which version of GWT are you using?

On Wednesday, November 8, 2017 at 7:58:09 PM UTC-6, TimOnGmail wrote:
Hmmm, nope - even if I make a copy of the buffer, I still get the above error in Super Dev mode.

Any ideas, anyone?

- Tim


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment