We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5b014 commit a502209Copy full SHA for a502209
src/node_file.cc
@@ -825,10 +825,8 @@ static void InternalModuleReadJSON(const FunctionCallbackInfo<Value>& args) {
825
826
while (p < pe) {
827
char c = *p++;
828
- if (c == '"') goto quote; // Keeps code flat and inner loop small.
829
if (c == '\\' && p < pe && *p == '"') p++;
830
- continue;
831
-quote:
+ if (c != '"') continue;
832
*ppos++ = p;
833
if (ppos < &pos[2]) continue;
834
ppos = &pos[0];
0 commit comments