diff --git a/src/node_file.cc b/src/node_file.cc index e10103b1ee9aad..bfdc73c9371ad1 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -825,10 +825,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];