diff --git a/test/cctest/test-js-to-wasm.cc b/test/cctest/test-js-to-wasm.cc index e1734162e8..21cfa77b21 100644 --- a/test/cctest/test-js-to-wasm.cc +++ b/test/cctest/test-js-to-wasm.cc @@ -262,12 +262,13 @@ enum TestMode { kJSToWasmInliningDisabled, kJSToWasmInliningEnabled }; class FastJSWasmCallTester { public: FastJSWasmCallTester() - : allow_natives_syntax_(&i::FLAG_allow_natives_syntax, true), - inline_js_wasm_calls_(&i::FLAG_turbo_inline_js_wasm_calls, true), - stress_background_compile_(&i::FLAG_stress_background_compile, false), - allocator_(), + : allocator_(), zone_(&allocator_, ZONE_NAME), - builder_(zone_.New(&zone_)) {} + builder_(zone_.New(&zone_)) { + i::FLAG_allow_natives_syntax = true; + i::FLAG_turbo_inline_js_wasm_calls = true; + i::FLAG_stress_background_compile = false; + } void DeclareCallback(const char* name, FunctionSig* signature, const char* module) { @@ -742,9 +743,6 @@ class FastJSWasmCallTester { return string_stream.str(); } - i::FlagScope allow_natives_syntax_; - i::FlagScope inline_js_wasm_calls_; - i::FlagScope stress_background_compile_; AccountingAllocator allocator_; Zone zone_; WasmModuleBuilder* builder_;