fc41a57a93
Fuchsia's Dart and Flutter content handlers share the implementation of dart:io with the command line embedder, but would like to disable some operations that don't make sense for them, like exiting thoe whole process, which may be hosting multiple unrelated Isolates. Change-Id: I825ece49c685471ff85802873b1c0f974c507aed Reviewed-on: https://dart-review.googlesource.com/3687 Reviewed-by: Ryan Macnak <rmacnak@google.com>
15 lines
400 B
Dart
15 lines
400 B
Dart
// Copyright (c) 2017, 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=--disable-exit
|
|
|
|
import "dart:io" as io;
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
void main() {
|
|
Expect.throws(() {
|
|
io.exit(-1);
|
|
}, (e) => (e is UnsupportedError));
|
|
}
|