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 a25ceef commit 246b789Copy full SHA for 246b789
src/node_file.cc
@@ -862,10 +862,8 @@ static void InternalModuleReadJSON(const FunctionCallbackInfo<Value>& args) {
862
863
while (p < pe) {
864
char c = *p++;
865
- if (c == '"') goto quote; // Keeps code flat and inner loop small.
866
if (c == '\\' && p < pe && *p == '"') p++;
867
- continue;
868
-quote:
+ if (c != '"') continue;
869
*ppos++ = p;
870
if (ppos < &pos[2]) continue;
871
ppos = &pos[0];
0 commit comments