@grain/stdlib 0.5.9 → 0.5.11
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/runtime/exception.gr +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### [0.5.11](https://github.com/grain-lang/grain/compare/stdlib-v0.5.10...stdlib-v0.5.11) (2022-12-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **stdlib:** Synchronize Grain versions
|
|
9
|
+
|
|
10
|
+
### [0.5.10](https://github.com/grain-lang/grain/compare/stdlib-v0.5.9...stdlib-v0.5.10) (2022-12-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **compiler:** Provide appropriate error during invalid array access ([#1556](https://github.com/grain-lang/grain/issues/1556)) ([3d7b9e3](https://github.com/grain-lang/grain/commit/3d7b9e3d99b2639b46080e1c564d1453cd80f666))
|
|
16
|
+
|
|
3
17
|
### [0.5.9](https://github.com/grain-lang/grain/compare/stdlib-v0.5.8...stdlib-v0.5.9) (2022-12-14)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
package/runtime/exception.gr
CHANGED
|
@@ -99,6 +99,7 @@ export let panicWithException = (e: Exception) => {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export exception IndexOutOfBounds
|
|
102
|
+
export exception IndexNonInteger
|
|
102
103
|
export exception DivisionByZero
|
|
103
104
|
export exception ModuloByZero
|
|
104
105
|
export exception Overflow
|
|
@@ -119,6 +120,7 @@ export exception InvalidArgument(String)
|
|
|
119
120
|
let runtimeErrorPrinter = e => {
|
|
120
121
|
match (e) {
|
|
121
122
|
IndexOutOfBounds => Some("IndexOutOfBounds: Index out of bounds"),
|
|
123
|
+
IndexNonInteger => Some("IndexNonInteger: Index not an integer"),
|
|
122
124
|
DivisionByZero => Some("DivisionByZero: Division by zero"),
|
|
123
125
|
ModuloByZero => Some("ModuloByZero: Modulo by zero"),
|
|
124
126
|
Overflow => Some("Overflow: Number overflow"),
|