259 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.

Embedded Wizard Website | Privacy Policy | Imprint

...