fix: new WebAssembly API support in Node.js (#36420)
This commit is contained in:
parent
909ee0ed6b
commit
b90a5baa6d
4 changed files with 26 additions and 9 deletions
|
@ -22,7 +22,8 @@ class MicrotasksRunner;
|
|||
// Manage the V8 isolate and context automatically.
|
||||
class JavascriptEnvironment {
|
||||
public:
|
||||
explicit JavascriptEnvironment(uv_loop_t* event_loop);
|
||||
explicit JavascriptEnvironment(uv_loop_t* event_loop,
|
||||
bool setup_wasm_streaming = false);
|
||||
~JavascriptEnvironment();
|
||||
|
||||
// disable copy
|
||||
|
@ -41,7 +42,7 @@ class JavascriptEnvironment {
|
|||
static v8::Isolate* GetIsolate();
|
||||
|
||||
private:
|
||||
v8::Isolate* Initialize(uv_loop_t* event_loop);
|
||||
v8::Isolate* Initialize(uv_loop_t* event_loop, bool setup_wasm_streaming);
|
||||
std::unique_ptr<node::MultiIsolatePlatform> platform_;
|
||||
|
||||
v8::Isolate* isolate_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue