Version 2.11.0-213.5.beta
* Cherry-pick 34b485c0c4ef3a1b24f89fb2af3ec6ec6837a401 to beta
diff --git a/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/classes.dart b/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/classes.dart
index 724b90a..8261822 100644
--- a/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/classes.dart
+++ b/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/classes.dart
@@ -435,6 +435,13 @@
return;
}
+ if (JS('!', '# === #.Object', jsType, global_)) {
+ var extName = JS<String>('!', '#.name', dartExtType);
+ _warn(
+ "Attempting to install properties from non-Object type '$extName' onto the native JS Object.");
+ return;
+ }
+
_installProperties(
jsProto, dartExtType, JS('', '#[#]', jsProto, _extensionType));
diff --git a/tools/VERSION b/tools/VERSION
index d065d49..e305fba 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -28,4 +28,4 @@
MINOR 11
PATCH 0
PRERELEASE 213
-PRERELEASE_PATCH 4
\ No newline at end of file
+PRERELEASE_PATCH 5
\ No newline at end of file