mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
tools,doc: use V8::DisposePlatform
V8::ShutdownPlatform has been deprecated and does the same. PR-URL: https://github.com/nodejs/node/pull/41610 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
30c4e1d952
commit
86b77f7d0f
@ -61,7 +61,7 @@ int main(int argc, char** argv) {
|
|||||||
int ret = RunNodeInstance(platform.get(), args, exec_args);
|
int ret = RunNodeInstance(platform.get(), args, exec_args);
|
||||||
|
|
||||||
V8::Dispose();
|
V8::Dispose();
|
||||||
V8::ShutdownPlatform();
|
V8::DisposePlatform();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -98,7 +98,7 @@ class NodeZeroIsolateTestFixture : public ::testing::Test {
|
|||||||
while (uv_loop_alive(¤t_loop)) {
|
while (uv_loop_alive(¤t_loop)) {
|
||||||
uv_run(¤t_loop, UV_RUN_ONCE);
|
uv_run(¤t_loop, UV_RUN_ONCE);
|
||||||
}
|
}
|
||||||
v8::V8::ShutdownPlatform();
|
v8::V8::DisposePlatform();
|
||||||
CHECK_EQ(0, uv_loop_close(¤t_loop));
|
CHECK_EQ(0, uv_loop_close(¤t_loop));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ int main(int argc, char** argv) {
|
|||||||
int ret = RunNodeInstance(platform.get(), args, exec_args);
|
int ret = RunNodeInstance(platform.get(), args, exec_args);
|
||||||
|
|
||||||
V8::Dispose();
|
V8::Dispose();
|
||||||
V8::ShutdownPlatform();
|
V8::DisposePlatform();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,6 +68,6 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
isolate->Dispose();
|
isolate->Dispose();
|
||||||
|
|
||||||
v8::V8::ShutdownPlatform();
|
v8::V8::DisposePlatform();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user