Incorrect error message
@aaronbpaden
Submitted by Aaron Paden Link to original bug (#720575)
Description
Created attachment 264374 Scratch gjs code
The following code is an error:
var variable = new SomeObject();
var variable.someMethod();
You get the following error message from this code:
(gjs:3339): Gjs-WARNING **: JS ERROR: SyntaxError: missing ; before statement
JS_EvaluateScript() failed
This error message is not very helpful and a little deceptive. In a larger program it would cause you to rip your hair right out. :) As an aside, the line number seems to go up every time you run the program.
Attachment 264374, "Scratch gjs code":
broken.tar.gz