c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.12k stars 223 forks source link

[samples] log+debugging/log.htm syntax error #146

Closed pavelc7 closed 4 years ago

pavelc7 commented 4 years ago
Error: bad syntax : Expecting ',' or ';', found '<identifier>'
line:  debug info: "info sample, object and array:" obj arr; 
here:__________________________________________________^
file:(file://sciter-sdk/samples/log%2Bdebugging/log.htm(12))
    at loadFile (this://app/default.tis(23))
    at  (this://app/default.tis(163))

sciter-sdk\samples\log+debugging\log.htm should be

debug info: "info sample, object and array:", obj, arr;
  debug alert: "alert sample, integer and DOM element:", v, self;
  debug warning: "warning sample, namespace:", self.ns;
  debug custom: "custom label, custom", self.ns;
  debug foo: "custom label, foo";
  debug bar: "custom label, bar", obj;
c-smile commented 4 years ago

My pardon, forgot to update that sample, fixed by : https://github.com/c-smile/sciter-sdk/commit/97ce5155ebed41c867899b17c48197c14c85c2d0