| Index: test/cctest/wasm/test-run-wasm-module.cc
|
| diff --git a/test/cctest/wasm/test-run-wasm-module.cc b/test/cctest/wasm/test-run-wasm-module.cc
|
| index b4c271fa5b1da99937b51266fa6d725e17d4142e..8a45955b8dafd9b5e4b500ce905f71ffe3396b27 100644
|
| --- a/test/cctest/wasm/test-run-wasm-module.cc
|
| +++ b/test/cctest/wasm/test-run-wasm-module.cc
|
| @@ -48,15 +48,7 @@ void TestModuleException(Zone* zone, WasmModuleBuilder* builder) {
|
| isolate->clear_pending_exception();
|
| }
|
|
|
| -void ExportAs(WasmFunctionBuilder* f, const char* name) {
|
| - f->SetExported();
|
| - f->SetName(name, static_cast<int>(strlen(name)));
|
| -}
|
| -
|
| -void ExportAsMain(WasmFunctionBuilder* f) {
|
| - static const char kMainName[] = "main";
|
| - ExportAs(f, kMainName);
|
| -}
|
| +void ExportAsMain(WasmFunctionBuilder* f) { f->ExportAs(CStrVector("main")); }
|
|
|
| } // namespace
|
|
|
| @@ -190,7 +182,7 @@ TEST(Run_WasmModule_Serialization) {
|
| WasmFunctionBuilder* f = builder->AddFunction(sigs.i_i());
|
| byte code[] = {WASM_GET_LOCAL(0), kExprI32Const, 1, kExprI32Add};
|
| f->EmitCode(code, sizeof(code));
|
| - ExportAs(f, kFunctionName);
|
| + f->ExportAs(CStrVector(kFunctionName));
|
|
|
| ZoneBuffer buffer(&zone);
|
| builder->WriteTo(buffer);
|
|
|