Commit 398cf3a
committed
test: initialize platform in NodeTestFixture
Calling TearDown() without Setup() first is not allowed, but
this should fix a coverity warning:
*** CID 166971: Uninitialized members (UNINIT_CTOR)
/test/cctest/node_test_fixture.h: 97 in NodeTestFixture::NodeTestFixture()()
91 v8::V8::ShutdownPlatform();
92 delete platform_;
93 platform_ = nullptr;
94 }
95
96 private:
>>> CID 166971: Uninitialized members (UNINIT_CTOR)
>>> The compiler-generated constructor for this class does not initialize "platform_".
97 v8::Platform* platform_;
98 };1 parent 6724f78 commit 398cf3a
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
0 commit comments