Skip to content

Commit ddc4225

Browse files
committed
german false is "falsch"
1 parent 4419f9c commit ddc4225

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ in the future.
391391
| Keyword | German (de) | Czech (cs) |
392392
| --------- | ----------- | ---------- |
393393
| `true` | `wahr` | `pravda` |
394-
| `false` | `unwahr` | `nepravda` |
394+
| `false` | `falsch` | `nepravda` |
395395
| `if` | `falls` | `pokud` |
396396
| `else` | `sonst` | `jinak` |
397397
| `while` | `solange` | `dokud` |

src/lang.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const Keywords = {
22
TRUE: ['true', 'pravda', 'wahr'],
3-
FALSE: ['false', 'nepravda', 'unwahr'],
3+
FALSE: ['false', 'nepravda', 'falsch'],
44
IF: ['if', 'pokud', 'falls'],
55
ELSE: ['else', 'jinak', 'sonst'],
66
WHILE: ['while', 'dokud', 'solange'],
@@ -227,6 +227,7 @@ class BiOperator extends Operator {
227227
this.isBi = true
228228
this.precedence = this.getPrecedence()
229229
this.isAddition = '+' === op
230+
this.isShortCircuit = '&' === op || '|' === op
230231
this.source = source
231232
}
232233
apply(a, b) {
@@ -449,7 +450,7 @@ class LangArray extends LangValueObject {
449450
element(indexes, newValue) {
450451
return indexes.reduce((a,c,i) => {
451452
const index = Math.ceil(c.value)
452-
if (index < 0 || index >= a.value.length) throw new LangError(Errors.ARRAY_INDEX_OUT_BOUNDS)
453+
if (index < 0 || index >= a.value.length) throw new LangError(Errors.ARRAY_INDEX_OUT_BOUNDS, null, index)
453454
const v = a.value[index]
454455
// set the value for the last element
455456
if (newValue && i === indexes.length - 1)

0 commit comments

Comments
 (0)