From b64e486240413454c542c28e724cb6583b1c5511 Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Sat, 22 Jul 2017 17:20:49 -0700 Subject: [PATCH] Do not assign to a readonly property on window If `window.customElements` exists there's a good chance that it's a readonly property as per spec, and assigning to readonly properties throws an exception in strict mode. --- test/unit/shady-content.html | 4 +++- test/unit/shady-dynamic.html | 4 +++- test/unit/shady-events.html | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test/unit/shady-content.html b/test/unit/shady-content.html index 9381b2b202..da2dfff01b 100644 --- a/test/unit/shady-content.html +++ b/test/unit/shady-content.html @@ -12,7 +12,9 @@