Chromium Code Reviews| Index: runtime/vm/parser.cc |
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
| index 29e6c29055a81dfd5df00063ec3cb8cc6484a3ef..abbbd94c0b59d6cfc334a632475a63f1121ae638 100644 |
| --- a/runtime/vm/parser.cc |
| +++ b/runtime/vm/parser.cc |
| @@ -2282,11 +2282,9 @@ SequenceNode* Parser::ParseFunc(const Function& func, |
| ParseNativeFunctionBlock(¶ms, func); |
| } else if (func.is_external()) { |
| // Body of an external method contains a single throw. |
| + const String& function_name = String::Handle(func.name()); |
|
hausner
2012/10/19 21:43:25
This needs to be a ZoneHandle I think.
hausner
2012/10/19 21:43:25
This needs to be a ZoneHandle I think.
Tom Ball
2012/10/19 22:06:42
Done.
|
| current_block_->statements->Add( |
| - new ThrowNode(TokenPos(), |
| - new LiteralNode(TokenPos(), |
| - String::ZoneHandle( |
| - Symbols::New("External implementation missing."))), NULL)); |
| + ThrowNoSuchMethodError(TokenPos(), function_name)); |
| } else { |
| UnexpectedToken(); |
| } |