blob: 7510bf93d720f0e766602f6244759a3be2437083 [file] [log] [blame]
/*
* Copyright (c) 2011, 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.
*/
/**
* @assertion undocumented
* @description Checks that method throws an exception when given null, an integer or a List.
* @author iefremov
* @needsreview documentation looks incomplete
*/
import "dart:isolate";
import "../../../Utils/expect.dart";
main() {
var uri=null;
Expect.throws(() => Isolate.spawnUri(uri, [], null));
uri="null";
Expect.throws(() => Isolate.spawnUri(uri, [], null));
uri=1;
Expect.throws(() => Isolate.spawnUri(uri, [], null));
uri=["null"];
Expect.throws(() => Isolate.spawnUri(uri, [], null));
}