test: properly order freeing resources in cctest
The `IsolateData` instance is created before the `Environment` instance, so free in reverse order. Fixes: https://github.com/nodejs/node/issues/14206 PR-URL: https://github.com/nodejs/node/pull/14749 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
parent
b559e66252
commit
93f25f4b44
@ -41,9 +41,9 @@ class EnvironmentTest : public NodeTestFixture {
|
||||
}
|
||||
|
||||
~Env() {
|
||||
FreeIsolateData(isolate_data_);
|
||||
environment_->CleanupHandles();
|
||||
FreeEnvironment(environment_);
|
||||
FreeIsolateData(isolate_data_);
|
||||
}
|
||||
|
||||
Environment* operator*() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user