Add Flatbuffers support to NodeJS bindings
This commit is contained in:
parent
e45fb31a92
commit
41c80d52e8
@ -970,7 +970,9 @@ inline PluginParameters argumentsToPluginParameters(
|
||||
}
|
||||
else if (format_str == "json_buffer")
|
||||
{
|
||||
if (output_format && output_format != osrm::engine::api::BaseParameters::OutputFormatType::JSON) {
|
||||
if (output_format &&
|
||||
output_format != osrm::engine::api::BaseParameters::OutputFormatType::JSON)
|
||||
{
|
||||
Nan::ThrowError("Deprecated `json_buffer` can only be used with JSON format");
|
||||
}
|
||||
return {true};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user