blob: d28ef33cb818fc8d55adb56a19a82d0c6d9305a9 [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 Throws Error if [charCodes] is null.
* @description Checks that an Error is thrown when the argument is null.
* @author msyabro
* @reviewer rodionov
* @needsreview undocumented
*/
import "../../../Utils/expect.dart";
main() {
try {
String str = new String.fromCharCodes(null);
Expect.fail("Error is expected");
} on Error catch(e) {}
}