| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index 0f7df4d6064e0d542367da780486db8a6002f65e..6a158ec73c893e1dcb95e04509e54630386b7eab 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -338,7 +338,7 @@ static MaybeHandle<JSFunction> ReportFFIError(ErrorThrower& thrower,
|
| const char* error, uint32_t index,
|
| wasm::WasmName module_name,
|
| wasm::WasmName function_name) {
|
| - if (function_name.start()) {
|
| + if (!function_name.is_empty()) {
|
| thrower.Error("Import #%d module=\"%.*s\" function=\"%.*s\" error: %s",
|
| index, module_name.length(), module_name.start(),
|
| function_name.length(), function_name.start(), error);
|
| @@ -374,7 +374,7 @@ static MaybeHandle<JSFunction> LookupFunction(
|
| }
|
|
|
| Handle<Object> function;
|
| - if (function_name.start()) {
|
| + if (!function_name.is_empty()) {
|
| // Look up the function in the module.
|
| Handle<String> name = factory->InternalizeUtf8String(function_name);
|
| MaybeHandle<Object> result = Object::GetProperty(module, name);
|
|
|