Skip to content

Commit d75bfa4

Browse files
authored
v8: add missing namespace. (#253)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 355b26e commit d75bfa4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/v8/v8.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
#include "wasm-api/wasm.hh"
3131

3232
namespace proxy_wasm {
33-
namespace {
33+
namespace v8 {
3434

3535
wasm::Engine *engine() {
3636
static std::once_flag init;
3737
static wasm::own<wasm::Engine> engine;
3838

3939
std::call_once(init, []() {
40-
v8::V8::EnableWebAssemblyTrapHandler(true);
40+
::v8::V8::EnableWebAssemblyTrapHandler(true);
4141
engine = wasm::Engine::make();
4242
});
4343

@@ -688,8 +688,8 @@ std::string V8::getFailMessage(std::string_view function_name, wasm::own<wasm::T
688688
return message;
689689
}
690690

691-
} // namespace
691+
} // namespace v8
692692

693-
std::unique_ptr<WasmVm> createV8Vm() { return std::make_unique<V8>(); }
693+
std::unique_ptr<WasmVm> createV8Vm() { return std::make_unique<v8::V8>(); }
694694

695695
} // namespace proxy_wasm

0 commit comments

Comments
 (0)