diff --git a/src/node_file.cc b/src/node_file.cc index ea0f465fe8de54..f4d26adf290781 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -878,10 +878,8 @@ static void InternalModuleReadJSON(const FunctionCallbackInfo& args) { while (p < pe) { char c = *p++; - if (c == '"') goto quote; // Keeps code flat and inner loop small. if (c == '\\' && p < pe && *p == '"') p++; - continue; -quote: + if (c != '"') continue; *ppos++ = p; if (ppos < &pos[2]) continue; ppos = &pos[0];