

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# サポートされていないステートメント
<a name="ecma-unsupported"></a>

Amazon Lex V2 は次の ECMAScript 機能をサポートしていません。

**Topics**
+ [空のステートメント](#ecma-unsupported-empty)
+ [Continue ステートメント](#ecma-unsupported-continue)
+ [Break ステートメント](#ecma-unsupported-break)
+ [Return ステートメント](#ecma-unsupported-return)
+ [Throw ステートメント](#ecma-unsupported-throw)
+ [Try ステートメント](#ecma-unsupported-try)
+ [Debugger ステートメント](#ecma-unsupported-debugger)
+ [ラベル付きステートメント](#ecma-unsupported-labelled)
+ [クラス宣言](#ecma-unsupported-class)

## 空のステートメント
<a name="ecma-unsupported-empty"></a>

空のステートメントはステートメントを指定しない場合に使用します。空のステートメントの構文は次のとおりです。

```
;
```

## Continue ステートメント
<a name="ecma-unsupported-continue"></a>

ラベルのない continue ステートメントは、[反復ステートメント](ecma-iteration.md) でサポートされています。ラベル付きの continue ステートメントは、サポートされていません。

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

## Break ステートメント
<a name="ecma-unsupported-break"></a>

ラベルのない break ステートメントは、[反復ステートメント](ecma-iteration.md) でサポートされています。ラベル付きの break ステートメントは、サポートされていません。

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

## Return ステートメント
<a name="ecma-unsupported-return"></a>

```
return expression;
```

## Throw ステートメント
<a name="ecma-unsupported-throw"></a>

throw ステートメントは、ユーザー定義の例外を投げるために使用されます。

```
throw expression;
```

## Try ステートメント
<a name="ecma-unsupported-try"></a>

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

## Debugger ステートメント
<a name="ecma-unsupported-debugger"></a>

debugger ステートメントは、環境によって提供されるデバッグ機能を呼び出すために使用されます。

```
debugger;
```

## ラベル付きステートメント
<a name="ecma-unsupported-labelled"></a>

ラベル付きステートメントは `break` または `continue` ステートメントと併用できます。

```
label:
   statements


// Example
let str = '';

loop1:
for (let i = 0; i < 5; i++) {
  if (i === 1) {
    continue loop1;
  }
  str = str + i;
}

console.log(str);
```

## クラス宣言
<a name="ecma-unsupported-class"></a>

```
class Rectangle {
  constructor(height, width) {
    this.height = height;
    this.width = width;
  }
}
```