File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
standalone-packages/vscode-textmate/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ let onigurumaLib: Thenable<IOnigLib> = null;
1212export 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+ }
You can’t perform that action at this time.
0 commit comments