| Index: lib/runtime/dart_sdk.js
|
| diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
|
| index 12485f53c4a730bcba779a16ae32fac7815bf3f0..b0d66f601e5048266b4f6d193fe7beb9eb367488 100644
|
| --- a/lib/runtime/dart_sdk.js
|
| +++ b/lib/runtime/dart_sdk.js
|
| @@ -1124,7 +1124,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
|
| dart.throwStrongModeError('Strong mode is check failure: ' + dart.typeName(actual) + ' does not soundly subtype ' + dart.typeName(type));
|
| };
|
| dart.as = function(obj, type) {
|
| - if (obj == null) return obj;
|
| + if (type == dart.dynamic || obj == null) return obj;
|
| let result = dart.strongInstanceOf(obj, type, true);
|
| if (result) return obj;
|
| dart._throwCastError(obj, type, result);
|
|
|