Skip to content

Commit

Permalink
Mark sandbox Call() method virtual
Browse files Browse the repository at this point in the history
This is to enable custom error handling across all sandbox method calls.

PiperOrigin-RevId: 684825280
Change-Id: I8b6eaa1b9adef71ee72666af8083c979e25bdd77
  • Loading branch information
Sandboxed API Team authored and copybara-github committed Oct 11, 2024
1 parent a7ad546 commit 33d89d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sandboxed_api/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class Sandbox {
"Too many arguments to sapi::Sandbox::Call()");
return Call(func, ret, {std::forward<Args>(args)...});
}
absl::Status Call(const std::string& func, v::Callable* ret,
std::initializer_list<v::Callable*> args);
virtual absl::Status Call(const std::string& func, v::Callable* ret,
std::initializer_list<v::Callable*> args);

// Allocates memory in the sandboxee, automatic_free indicates whether the
// memory should be freed on the remote side when the 'var' goes out of scope.
Expand Down

0 comments on commit 33d89d6

Please sign in to comment.