| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index a47d721c93324de376ec9e73f47c7eeb88c4a04d..95c43f64b33d9239ec51225fad5095bae41037c2 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -1149,17 +1149,6 @@ wrap_jso(jsObject) {
|
| // JS Interop converted the object to a Dart class e.g., Uint8ClampedList.
|
| return jsObject;
|
| }
|
| -
|
| - // To preserve identity, if we already have a wrapper for this, return it.
|
| - var existing;
|
| - if (jsObject is! js.JsArray) {
|
| - var existing = jsObject['dartClass_instance'];
|
| - try {
|
| - if (unwrap_jso(existing) == jsObject) {
|
| - return existing;
|
| - }
|
| - } catch(e) {}
|
| - }
|
| // Try the most general type conversions on it.
|
| // TODO(alanknight): We may be able to do better. This maintains identity,
|
| // which is useful, but expensive. And if we nest something that only
|
| @@ -1186,7 +1175,6 @@ wrap_jso(jsObject) {
|
| if (func != null) {
|
| dartClass_instance = func();
|
| dartClass_instance.blink_jsObject = jsObject;
|
| - jsObject['dartClass_instance'] = dartClass_instance;
|
| }
|
| }
|
| return dartClass_instance;
|
| @@ -1202,7 +1190,6 @@ wrap_jso(jsObject) {
|
| return null;
|
| }
|
|
|
| -
|
| /**
|
| * Create Dart class that maps to the JS Type that is the JS type being
|
| * extended using JS interop createCallback (we need the base type of the
|
| @@ -37181,10 +37168,10 @@ class Url extends NativeFieldWrapperClass2 implements UrlUtils {
|
| if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
|
| return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream));
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaSource)) {
|
| + if ((blob_OR_source_OR_stream is MediaStream)) {
|
| return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream));
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaStream)) {
|
| + if ((blob_OR_source_OR_stream is MediaSource)) {
|
| return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream));
|
| }
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
|
|