| Index: sdk/lib/_internal/compiler/implementation/scanner/listener.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
|
| index 65f35e28cbcdfe26365afb3c1c1150dc2c988d96..883093042e8a1a011975231d361eb2f32eadd1c0 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
|
| @@ -1346,8 +1346,11 @@ class NodeListener extends ElementListener {
|
| NodeList arguments = new NodeList.singleton(argument);
|
| pushNode(new Send(receiver, new Operator(token), arguments));
|
| }
|
| - if (identical(tokenString, '===') || identical(tokenString, '!==')) {
|
| - listener.onDeprecatedFeature(token, tokenString);
|
| + if (identical(tokenString, '===')) {
|
| + listener.reportError(token, MessageKind.UNSUPPORTED_EQ_EQ_EQ);
|
| + }
|
| + if (identical(tokenString, '!==')) {
|
| + listener.reportError(token, MessageKind.UNSUPPORTED_BANG_EQ_EQ);
|
| }
|
| }
|
|
|
| @@ -1497,7 +1500,8 @@ class NodeListener extends ElementListener {
|
| void endRethrowStatement(Token throwToken, Token endToken) {
|
| pushNode(new Rethrow(throwToken, endToken));
|
| if (identical(throwToken.stringValue, 'throw')) {
|
| - listener.onDeprecatedFeature(throwToken, 'throw without an expression');
|
| + listener.reportError(throwToken,
|
| + MessageKind.UNSUPPORTED_THROW_WITHOUT_EXP);
|
| }
|
| }
|
|
|
|
|