blob: 575a9662e54049630ce52854cacfb2f7f5da602c [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
import "package:expect/expect.dart";
// Test error message with noSuchMethodError: non-existent names
// should result in a message that reports the missing method.
call_bar(x) =>;
testMessage() {
try {
} catch (e) {
Expect.isTrue(e.toString().contains("has no instance method 'bar'"));
main() {
for (var i = 0; i < 20; i++) testMessage();