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