mercury-engine 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mercury.js +4 -1
- package/dist/mercury.min.es5.js +1 -1
- package/dist/mercury.min.js +1 -1
- package/examples/basic/index.html +4 -1
- package/package.json +1 -1
package/dist/mercury.js
CHANGED
|
@@ -17245,7 +17245,8 @@ class MercuryInterpreter {
|
|
|
17245
17245
|
// return if the code contains any syntax errors
|
|
17246
17246
|
Util.log(`Could not run because of syntax error`);
|
|
17247
17247
|
Util.log(`Please see Help for more information`);
|
|
17248
|
-
return
|
|
17248
|
+
// return the parsetree also if there are errors
|
|
17249
|
+
return this.parse;
|
|
17249
17250
|
}
|
|
17250
17251
|
// if no errors the last evaluated code is stored
|
|
17251
17252
|
this._code = c;
|
|
@@ -17427,6 +17428,8 @@ class MercuryInterpreter {
|
|
|
17427
17428
|
this.p5canvas.display();
|
|
17428
17429
|
});
|
|
17429
17430
|
}
|
|
17431
|
+
// return the parsetree to see from outside
|
|
17432
|
+
return this.parse;
|
|
17430
17433
|
}
|
|
17431
17434
|
}
|
|
17432
17435
|
module.exports = { MercuryInterpreter }
|