fix error C2664
This commit is contained in:
parent
b3b21f3101
commit
6358580eee
3 changed files with 1 additions and 22 deletions
|
|
@ -3,12 +3,6 @@ import { Token } from "./bindings/types.js"
|
|||
|
||||
export const {
|
||||
Lexer,
|
||||
isBlankChar,
|
||||
isWordChar,
|
||||
isNumberChar,
|
||||
}: {
|
||||
Lexer: (input: string) => Token[]
|
||||
isBlankChar: (char: string) => boolean
|
||||
isWordChar: (char: string) => boolean
|
||||
isNumberChar: (char: string) => boolean
|
||||
} = bindings("asajs-compiler")
|
||||
|
|
|
|||
|
|
@ -110,21 +110,6 @@ Napi::Object Init(Napi::Env env, Napi::Object exports) {
|
|||
Napi::Function::New(env, Lexer::Lexer)
|
||||
);
|
||||
|
||||
exports.Set(
|
||||
Napi::String::New(env, "isBlankChar"),
|
||||
Napi::Function::New(env, Lexer::isBlankChar)
|
||||
);
|
||||
|
||||
exports.Set(
|
||||
Napi::String::New(env, "isWordChar"),
|
||||
Napi::Function::New(env, Lexer::isWordChar)
|
||||
);
|
||||
|
||||
exports.Set(
|
||||
Napi::String::New(env, "isNumberChar"),
|
||||
Napi::Function::New(env, Lexer::isNumberChar)
|
||||
);
|
||||
|
||||
return exports;
|
||||
}
|
||||
|
||||
Reference in a new issue