diff --git a/src/node_file.cc b/src/node_file.cc index 54beb4e847fda1..0ce86287bb83e9 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -862,10 +862,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];