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
|
@@ -75,7 +75,10 @@
|
|
|
75
75
|
|
|
76
76
|
// evaluate the code on the click of a button
|
|
77
77
|
let b1 = document.getElementById('b1');
|
|
78
|
-
b1.onclick = () =>
|
|
78
|
+
b1.onclick = () => {
|
|
79
|
+
let tree = Engine.code(mercuryCode);
|
|
80
|
+
console.log(tree.errors);
|
|
81
|
+
}
|
|
79
82
|
|
|
80
83
|
// stop the code on the click of a button
|
|
81
84
|
let b2 = document.getElementById('b2');
|