dart-sdk/tests/language/inheritance_chain_lib.dart
Florian Loitsch f36b8aa4e4 dart2js: Make sure that super classes have their inheritance chain set up correctly.
This bug was only happening for the --fast-startup.
For most browsers we simply change the '__proto__' and the order wouldn't be important. However, for the other browsers we have to do it in order.

R=sigmund@google.com

Review URL: https://codereview.chromium.org//1347423003 .
2015-09-23 11:48:18 +02:00

25 lines
482 B
Dart

// Copyright (c) 2015, 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.
import "inheritance_chain_test.dart";
class B extends C {
get id => "B";
get length => 2;
}
class D extends Z {
get id => "D";
get length => 4;
}
class W {
get id => "W";
get length => -4;
}
class Y extends X {
get id => "Y";
get length => -2;
}