public/swaggerui/swagger-ui.js
function parseLexicalBinding(kind, options) {
        var init = null, id, node = new Node(), params = [];

        id = parsePattern(params, kind);

        // ECMA-262 12.2.1
        if (strict && id.type === Syntax.Identifier && isRestrictedWord(id.name)) {
            tolerateError(Messages.StrictVarName);
        }

        if (kind === 'const') {
            if (!matchKeyword('in') && !matchContextualKeyword('of')) {
                expect('=');
                init = isolateCoverGrammar(parseAssignmentExpression);
            }
        } else if ((!options.inFor && id.type !== Syntax.Identifier) || match('=')) {
            expect('=');
            init = isolateCoverGrammar(parseAssignmentExpression);
        }

        return node.finishVariableDeclarator(id, init);
    }
function parseLexicalBinding(kind, options) {
        var init = null, id, node = new Node(), params = [];

        id = parsePattern(params, kind);

        // ECMA-262 12.2.1
        if (strict && id.type === Syntax.Identifier && isRestrictedWord(id.name)) {
            tolerateError(Messages.StrictVarName);
        }

        if (kind === 'const') {
            if (!matchKeyword('in') && !matchContextualKeyword('of')) {
                expect('=');
                init = isolateCoverGrammar(parseAssignmentExpression);
            }
        } else if ((!options.inFor && id.type !== Syntax.Identifier) || match('=')) {
            expect('=');
            init = isolateCoverGrammar(parseAssignmentExpression);
        }

        return node.finishVariableDeclarator(id, init);
    }
function parseLexicalBinding ( kind , options ) { var init = null , id , node = new Node ( ) , params = [ ] ; id = parsePattern ( params , kind ) ; // ECMA-262 12.2.1 if ( strict && id . type === Syntax . Identifier && isRestrictedWord ( id . name ) ) { tolerateError ( Messages . StrictVarName ) ; } if ( kind === 'const' ) { if ( ! matchKeyword ( 'in' ) && ! matchContextualKeyword ( 'of' ) ) { expect ( '=' ) ; init = isolateCoverGrammar ( parseAssignmentExpression ) ; } } else if ( ( ! options . inFor && id . type !== Syntax . Identifier ) || match ( '=' ) ) { expect ( '=' ) ; init = isolateCoverGrammar ( parseAssignmentExpression ) ; } return node . finishVariableDeclarator ( id , init ) ; }
ECMA-262 13.3.1 Let and Const Declarations
ECMA - 262 13 . 3 . 1 Let and Const Declarations