소스 검색

Fixing continue statements

Sebastien Ros 12 년 전
부모
커밋
7fc62559af
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
                     {
                     {