Skip to content

Commit c8e9c0d

Browse files
committed
Upgrade onigasm
1 parent c89b469 commit c8e9c0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

standalone-packages/vscode-textmate/src/onigLibs.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ let onigurumaLib: Thenable<IOnigLib> = null;
1212
export function getOnigasm(): Thenable<IOnigLib> {
1313
if (!onigasmLib) {
1414
let onigasmModule = require('onigasm');
15-
const wasmBin = '/public/onigasm/2.1.0/onigasm.wasm';
15+
const wasmBin = '/public/onigasm/2.2.1/onigasm.wasm';
1616
onigasmLib = onigasmModule.loadWASM(wasmBin).then((_: any) => {
1717
return {
1818
createOnigScanner(patterns: string[]) { return new onigasmModule.OnigScanner(patterns); },
19-
createOnigString(s: string) {
19+
createOnigString(s: string) {
2020
const r = new onigasmModule.OnigString(s);
21-
21+
2222
(<any>r).$str = s;
2323
return r;
2424
}
@@ -36,7 +36,7 @@ export function getOniguruma(): Thenable<IOnigLib> {
3636
if (!onigurumaModule) {
3737
// CODESANDBOX EDIT
3838
onigurumaModule = {};
39-
39+
4040
}
4141
return onigurumaModule;
4242
};
@@ -55,4 +55,4 @@ export function getOniguruma(): Thenable<IOnigLib> {
5555
});
5656
}
5757
return onigurumaLib;
58-
}
58+
}

0 commit comments

Comments
 (0)