blob: add05086ce7cd4ea504284a2beb56cd573b24cbb [file] [log] [blame]
// Copyright (c) 2023, 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 'dart:isolate';
import 'deferred.dart' deferred as prefix1;
import 'deferred.dart' deferred as prefix2;
Future<void> main(List<String> args, SendPort port) async {
throw 'Not executed';
}
String test() {
String x = '';
try {
x += prefix1.foo(); // Should retain loaded=true state across reload.
} catch (e, st) {
print(e);
print(st);
x += 'error';
}
x += ',';
try {
x += prefix2.foo(); // Should retain loaded=false state across reload.
} catch (e, st) {
print(e);
print(st);
x += 'error';
}
return x;
}