Browse Source

Fixing continue statements

Sebastien Ros 11 years ago
parent
commit
7fc62559af
1 changed files with 1 additions and 1 deletions
  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);
                     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)
                     if (stmt.Type != Completion.Normal)
                     {
                     {