Procházet zdrojové kódy

Fixing continue statements

Sebastien Ros před 12 roky
rodič
revize
7fc62559af
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Jint/Runtime/StatementInterpreter.cs

+ 1 - 1
Jint/Runtime/StatementInterpreter.cs

@@ -184,7 +184,7 @@ namespace Jint.Runtime
                 {
                     return new Completion(Completion.Normal, v, null);
                 }
-                if (stmt.Type != Completion.Continue || stmt.Identifier != forStatement.LabelSet)
+                if (stmt.Type != Completion.Continue || ((stmt.Identifier != null) && stmt.Identifier != forStatement.LabelSet))
                 {
                     if (stmt.Type != Completion.Normal)
                     {