browser/pellets.js
function parseContinueStatement() {
        var token, label = null;

        expectKeyword('continue');

        // Optimize the most common form: 'continue;'.
        if (source[index] === ';') {
            lex();
            
            if (!inIteration) {
                throwError({}, Messages.IllegalContinue);
            }

            return {
                type: Syntax.ContinueStatement,
                label: null
            };
        }

        if (peekLineTerminator()) {
            if (!inIteration) {
                throwError({}, Messages.IllegalContinue);
            }

            return {
                type: Syntax.ContinueStatement,
                label: null
            };
        }

        token = lookahead();
        if (token.type === Token.Identifier) {
            label = parseVariableIdentifier();

            if (!Object.prototype.hasOwnProperty.call(labelSet, label.name)) {
                throwError({}, Messages.UnknownLabel, label.name);
            }
        }

        consumeSemicolon();

        if (label === null && !inIteration) {
            throwError({}, Messages.IllegalContinue);
        }

        return {
            type: Syntax.ContinueStatement,
            label: label
        };
    }
function parseContinueStatement() {
        var token, label = null;

        expectKeyword('continue');

        // Optimize the most common form: 'continue;'.
        if (source[index] === ';') {
            lex();
            
            if (!inIteration) {
                throwError({}, Messages.IllegalContinue);
            }

            return {
                type: Syntax.ContinueStatement,
                label: null
            };
        }

        if (peekLineTerminator()) {
            if (!inIteration) {
                throwError({}, Messages.IllegalContinue);
            }

            return {
                type: Syntax.ContinueStatement,
                label: null
            };
        }

        token = lookahead();
        if (token.type === Token.Identifier) {
            label = parseVariableIdentifier();

            if (!Object.prototype.hasOwnProperty.call(labelSet, label.name)) {
                throwError({}, Messages.UnknownLabel, label.name);
            }
        }

        consumeSemicolon();

        if (label === null && !inIteration) {
            throwError({}, Messages.IllegalContinue);
        }

        return {
            type: Syntax.ContinueStatement,
            label: label
        };
    }
function parseContinueStatement ( ) { var token , label = null ; expectKeyword ( 'continue' ) ; // Optimize the most common form: 'continue;'. if ( source [ index ] === ';' ) { lex ( ) ; if ( ! inIteration ) { throwError ( { } , Messages . IllegalContinue ) ; } return { type : Syntax . ContinueStatement , label : null } ; } if ( peekLineTerminator ( ) ) { if ( ! inIteration ) { throwError ( { } , Messages . IllegalContinue ) ; } return { type : Syntax . ContinueStatement , label : null } ; } token = lookahead ( ) ; if ( token . type === Token . Identifier ) { label = parseVariableIdentifier ( ) ; if ( ! Object . prototype . hasOwnProperty . call ( labelSet , label . name ) ) { throwError ( { } , Messages . UnknownLabel , label . name ) ; } } consumeSemicolon ( ) ; if ( label === null && ! inIteration ) { throwError ( { } , Messages . IllegalContinue ) ; } return { type : Syntax . ContinueStatement , label : label } ; }
12.7 The continue statement
12 . 7 The continue statement