File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -96,16 +96,18 @@ suite("Grammars", () => {
96
96
"./node_modules/vscode-oniguruma/release/onig.wasm" ,
97
97
) ,
98
98
) ;
99
- const vscodeOnigurumaLib = oniguruma . loadWASM ( wasmBin . buffer ) . then ( ( ) => {
100
- return {
101
- createOnigScanner ( patterns : string [ ] ) {
102
- return new oniguruma . OnigScanner ( patterns ) ;
103
- } ,
104
- createOnigString ( str : string ) {
105
- return new oniguruma . OnigString ( str ) ;
106
- } ,
107
- } ;
108
- } ) ;
99
+ const vscodeOnigurumaLib = oniguruma
100
+ . loadWASM ( Buffer . from ( wasmBin ) . buffer )
101
+ . then ( ( ) => {
102
+ return {
103
+ createOnigScanner ( patterns : string [ ] ) {
104
+ return new oniguruma . OnigScanner ( patterns ) ;
105
+ } ,
106
+ createOnigString ( str : string ) {
107
+ return new oniguruma . OnigString ( str ) ;
108
+ } ,
109
+ } ;
110
+ } ) ;
109
111
const registry = new vsctm . Registry ( {
110
112
onigLib : vscodeOnigurumaLib ,
111
113
loadGrammar : async ( scopeName ) => {
You can’t perform that action at this time.
0 commit comments