Skip to content

Commit

Permalink
fixup! src: allow blobs in addition to FILE*s in embedder snapshot API
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Feb 6, 2023
1 parent 56170f5 commit 0d928d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/embedding/embedtest.cc
Expand Up @@ -87,7 +87,8 @@ int RunNodeInstance(MultiIsolatePlatform* platform,
snapshot = node::EmbedderSnapshotData::FromBlob(vec);
}
assert(snapshot);
fclose(fp);
int ret = fclose(fp);
assert(ret == 0);
}

std::vector<std::string> errors;
Expand Down Expand Up @@ -149,7 +150,8 @@ int RunNodeInstance(MultiIsolatePlatform* platform,
size_t written = fwrite(vec.data(), vec.size(), 1, fp);
assert(written == 1);
}
fclose(fp);
int ret = fclose(fp);
assert(ret == 0);
}

node::Stop(env);
Expand Down

0 comments on commit 0d928d7

Please sign in to comment.