You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//@includepath "~/Documents/;%USERPROFILE%Documents";//@include "basiljs/basil.js";functiondraw(){b.clear(b.doc());//JSONvarjsonString=b.loadString("buggy.json");varjsonData=b.JSON.decode(jsonString);b.println("Hello world!");// --> does not printb.rect(0,0,100,100);// --> does not draw}b.go();
basil does not throw any error but instead silently stops executing any commands after the b.JSON.decode().
The text was updated successfully, but these errors were encountered:
Hi there,
a student of our class just found this bug.
Take a non-valid JSON file (closing square bracket missing):
and try to decode it with basil.js:
basil does not throw any error but instead silently stops executing any commands after the
b.JSON.decode()
.The text was updated successfully, but these errors were encountered: