Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Unsupported statements

Focus mode
Unsupported statements - Amazon Lex

Amazon Lex V2 doesn't support the following ECMAScript features.

Empty statement

The empty statement is used to provide no statement. The following is the syntax for an empty statement:

;

Continue statement

The continue statement without a label is supported with the Iteration statement. The continue statement with a label isn't supported.

// continue with label // this allows the program to jump to a // labelled statement (see labelled statement below) continue <label>;

Break statement

The break statement without a label is supported with the Iteration statement. The break statement with a label isn't supported.

// break with label // this allows the program to break out of a // labelled statement (see labelled statement below) break <label>;

Return statement

return expression;

Throw statement

The throw statement is used to throw a user-defined exception.

throw expression;

Try statement

try { statements } catch (expression) { statements } finally { statements }

Debugger statement

The debugger statement is used to invoke debugging functionality provided by the environment.

debugger;

Labeled statement

The labeled statement can be used with break or continue statements.

label: statements // Example let str = ''; loop1: for (let i = 0; i < 5; i++) { if (i === 1) { continue loop1; } str = str + i; } console.log(str);

Class declaration

class Rectangle { constructor(height, width) { this.height = height; this.width = width; } }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.