diff --git a/src/node_file.cc b/src/node_file.cc index d00595d1ca94ab..6dd1a0f60a4eac 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -873,10 +873,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];