This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ ifeq ($(UNAME_S), Darwin)
2929 NODE_FILE_NAME = darwin.node
3030endif
3131
32- VERSION = 3.0.0-3.6
32+ VERSION = 3.0.0-3.7
3333
3434ifndef BUILD_ENV
3535 BUILD_ENV = debug
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ namespace lib_ruby_parser_node {{
3232 return std::visit([env](auto &&variant) -> Napi::Value {{
3333 using T = std::decay_t<decltype(variant)>;
3434 {comparisons}
35+
36+ // Technically impossible
37+ return env.Null();
3538 }}, diagnostic_message->variant);
3639 }}
3740
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ namespace lib_ruby_parser_node
2525 return this ->callback .Env ();
2626 }
2727
28- virtual Result rewrite (std::string encoding, lib_ruby_parser::Bytes input)
28+ Result rewrite (const std::string & encoding, const lib_ruby_parser::Bytes & input) override
2929 {
3030 Napi::Value response = this ->callback .Call ({
3131 Napi::String::New (env (), encoding),
32- convert (std::move ( input), env ()),
32+ convert (input. clone ( ), env ()),
3333 });
3434
3535 if (response.IsString ())
You can’t perform that action at this time.
0 commit comments