542 views
in Platform Packages by

Just getting started with inline native() Javascript.

Doing:

 native

  {
    ws = new WebSocket("ws://10.0.0.222");

    ws.binaryType = "arraybuffer";
    ws.onopen = function (evt) {
        ws.send("f");
    }

    ws.onmessage=function(evt) {
        onMessage(evt)
    };

[...]

 

Gives me a syntax error in Chrome:

 

Is this a bug with EW Studio 9.10? Or am I doing something wrong?

1 Answer

0 votes
by
Doh, I missed a semicolon after a closing }

Apparently this is passable normally, but in the obfuscated code it causes the above issues.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...