Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ NAN_METHOD(decode) {
}
v8::Local<v8::Object> sourceHandle = info[0].As<v8::Object>();
v8::Local<v8::Object> targetHandle = info[1].As<v8::Object>();
const uint8_t qEncoding = info[2]->Uint32Value();
const uint8_t qEncoding = info[2]->Uint32Value(Nan::GetCurrentContext()).FromJust();
v8::Local<v8::Object> tableDecodingHandle = info[3].As<v8::Object>();
v8::Local<v8::Object> tableLegalHandle = info[4].As<v8::Object>();
const uint32_t sourceLength = node::Buffer::Length(sourceHandle);
Expand Down Expand Up @@ -216,7 +216,7 @@ NAN_METHOD(encode) {
}
v8::Local<v8::Object> sourceHandle = info[0].As<v8::Object>();
v8::Local<v8::Object> targetHandle = info[1].As<v8::Object>();
const uint8_t qEncoding = info[2]->Uint32Value();
const uint8_t qEncoding = info[2]->Uint32Value(Nan::GetCurrentContext()).FromJust();
v8::Local<v8::Object> tableEncodingHandle = info[3].As<v8::Object>();
v8::Local<v8::Object> tableLiteralsHandle = info[4].As<v8::Object>();
const uint32_t sourceLength = node::Buffer::Length(sourceHandle);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
},
"dependencies": {
"@ronomon/queue": "^3.0.0",
"nan": "^2.10.0"
"nan": "^2.14.0"
}
}