webcomponents / webcomponents/polyfills

TypeError: Attempting to configurable attribute of unconfigurable property on a connected TV browser.

Open
#558 3 comments 0 reactions 0 assignees View on GitHub
Focus Area: Standards & Polyfills Type: Bug
Dominant language
HTML
Stars
1.2k
Forks
168
PR merge metrics
No merged PRs in 30d

Description

### Description

I'm trying to use the polyfill on a connected TV using an old browser:
![image](https://github.com/webcomponents/polyfills/assets/5212358/ec479702-6734-4197-a2f4-0bc8bda99ce3)

User Agent:

```
"YouViewHTML/1.0 AppleWebKit/538.1 (Huawei Technologies Co., Ltd; DN360T.01.02.P; 001; CDS/60.48.91; API/3.2.0; PS/3.8.128) (+HTML+MHEG+IPCMC+DASH+DRM)"
```

And when the polyfill tries to add a get and a set to any html tag it raises an error:
`TypeError: Attempting to configurable attribute of unconfigurable property.`

![image](https://github.com/webcomponents/polyfills/assets/5212358/98357b2a-6c91-4005-940b-2d9f1563a494)

### Example

This is the code I'm using, only `core-js` and `webcomponents` polyfills.

```js
import 'core-js/actual/map';
import 'core-js/actual/weak-map';
import 'core-js/actual/set';
import 'core-js/actual/promise';
import 'core-js/actual/array';
import 'core-js/actual/string';
import 'core-js/actual/number';
import 'core-js/actual/object';
import 'core-js/actual/symbol';
import 'core-js/actual/function';
import '@webcomponents/webcomponentsjs';
```

### Steps to reproduce

Launch the app.

#### Expected behavior

No error is thrown

#### Actual behavior

`TypeError: Attempting to configurable attribute of unconfigurable property.`
### Version

@webcomponents/webcomponentsjs@2.8.0

### Browsers affected

```
"YouViewHTML/1.0 AppleWebKit/538.1 (Huawei Technologies Co., Ltd; DN360T.01.02.P; 001; CDS/60.48.91; API/3.2.0; PS/3.8.128) (+HTML+MHEG+IPCMC+DASH+DRM)"
```

- [ ] Chrome
- [ ] Firefox
- [ ] Edge
- [ ] Safari
- [ ] IE 11

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.