Skip to content

Commit d93fe00

Browse files
committed
Version 2.11.0-213.5.beta
* Cherry-pick 34b485c to beta
2 parents bba1aec + 4244110 commit d93fe00

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/classes.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,13 @@ void _applyExtension(jsType, dartExtType) {
435435
return;
436436
}
437437

438+
if (JS('!', '# === #.Object', jsType, global_)) {
439+
var extName = JS<String>('!', '#.name', dartExtType);
440+
_warn(
441+
"Attempting to install properties from non-Object type '$extName' onto the native JS Object.");
442+
return;
443+
}
444+
438445
_installProperties(
439446
jsProto, dartExtType, JS('', '#[#]', jsProto, _extensionType));
440447

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ MAJOR 2
2828
MINOR 11
2929
PATCH 0
3030
PRERELEASE 213
31-
PRERELEASE_PATCH 4
31+
PRERELEASE_PATCH 5

0 commit comments

Comments
 (0)