There was an error while loading. Please reload this page.
1 parent 6be2d75 commit 18c764cCopy full SHA for 18c764c
2 files changed
packages/wasm/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@ohm-js/wasm",
3
- "version": "0.3.0",
+ "version": "0.3.1",
4
"description": "Compile Ohm.js grammars to WebAsssembly",
5
"main": "dist/index.js",
6
"bin": {
packages/wasm/src/Compiler.js
@@ -918,7 +918,9 @@ export class Compiler {
918
case pexprs.Terminal:
919
return ir.terminal(exp.obj);
920
case pexprs.UnicodeChar:
921
- return ir.unicodeChar(exp.categoryOrProp);
+ // Support older versions of ohm-js (<= 17.2.1).
922
+ // TODO: Remove this eventually.
923
+ return ir.unicodeChar(exp.categoryOrProp ?? exp['category']);
924
default:
925
throw new Error(`not handled: ${exp.constructor.name}`);
926
}
0 commit comments