blob: 9d291b367fad98ec884a9589bbcb3ec8a650728a [file] [log] [blame]
// Copyright (c) 2019, 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.
// Test that the full stacktrace in an error object matches the stacktrace
// handed to the catch clause.
import 'dart:_internal' show VMInternalsForTesting;
import "package:expect/expect.dart";
class C {
// operator*(o) is missing to trigger a noSuchMethodError when a C object
// is used in the multiplication below.
}
bar(c) => c * 4;
foo(c) => bar(c);
main() {
print(VMInternalsForTesting.randomAddressInsideAllocateObjectStub());
var a = foo(new C());
}