wikipeg 6.1.3 → 6.1.4
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/HISTORY.md +4 -0
- package/lib/compiler/passes/ast-to-code.js +2 -2
- package/lib/peg.js +1 -1
- package/package.json +1 -1
package/HISTORY.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 6.1.4 (2026-06-26)
|
|
4
|
+
* Bug fix to boolean reference parameters
|
|
5
|
+
* Dependency updates.
|
|
6
|
+
|
|
3
7
|
## 6.1.3 (2026-06-03)
|
|
4
8
|
* Add array-transformation rules to --common-lang transformation,
|
|
5
9
|
which allows you to generate PHP and JavaScript parser from the same
|
|
@@ -645,12 +645,12 @@ function generateJavascript(ast, options) {
|
|
|
645
645
|
}
|
|
646
646
|
if (info.type === undefined) {
|
|
647
647
|
throw new Error("Undefined parameter type");
|
|
648
|
+
} else if (info.isref) {
|
|
649
|
+
return language.refParamValue(info.name);
|
|
648
650
|
} else if (info.type === 'boolean') {
|
|
649
651
|
return [
|
|
650
652
|
'/*', info.name, '*/',
|
|
651
653
|
'(', language.boolParams, ' & 0x', (1 << info.index).toString(16), ') !== 0'].join('');
|
|
652
|
-
} else if (info.isref) {
|
|
653
|
-
return language.refParamValue(info.name);
|
|
654
654
|
} else {
|
|
655
655
|
return language.paramArgName(info.name);
|
|
656
656
|
}
|
package/lib/peg.js
CHANGED