Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Jan 2, 2024
1 parent 838c658 commit 830d79d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/binding/avcpp-readable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ int ReadableCustomIO::seekable() const { return 0; }
void ReadableCustomIO::PushPendingData(int64_t to_read) {
verbose("ReadableCustomIO: push pending data: request %lu bytes\n", to_read);
Napi::Env env(Env());
Napi::Value push_value = this->Value().Get("push");
Napi::Value push_value;
try {
push_value = this->Value().Get("push");
} catch (const std::exception &e) {
verbose("ReadableCustomIO: C++ exception 3: %s\n", e.what());
std::rethrow_exception(std::current_exception());
}
if (!push_value.IsFunction()) {
verbose("ReadableCustomIO: push disappeared???\n");
verbose("%s\n", push_value.ToString().Utf8Value().c_str());
Expand Down

0 comments on commit 830d79d

Please sign in to comment.