| Index: sdk/lib/_internal/lib/core_patch.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/lib/core_patch.dart (revision 29517)
|
| +++ sdk/lib/_internal/lib/core_patch.dart (working copy)
|
| @@ -102,6 +102,11 @@
|
| int onError(String source) }) {
|
| return Primitives.parseInt(source, radix, onError);
|
| }
|
| +
|
| + patch factory int.fromEnvironment(String name, {int defaultValue}) {
|
| + throw new UnsupportedError(
|
| + 'int.fromEnvironement can only be used as a const constructor');
|
| + }
|
| }
|
|
|
| patch class double {
|
| @@ -219,8 +224,20 @@
|
| }
|
| return Primitives.stringFromCharCodes(charCodes);
|
| }
|
| +
|
| + patch factory String.fromEnvironment(String name, {String defaultValue}) {
|
| + throw new UnsupportedError(
|
| + 'String.fromEnvironement can only be used as a const constructor');
|
| + }
|
| }
|
|
|
| +patch class bool {
|
| + patch factory bool.fromEnvironment(String name) {
|
| + throw new UnsupportedError(
|
| + 'bool.fromEnvironement can only be used as a const constructor');
|
| + }
|
| +}
|
| +
|
| patch class RegExp {
|
| patch factory RegExp(String source,
|
| {bool multiLine: false,
|
|
|