diff options
author | 李瑞丰 <li15227870916@gmail.com> | 2021-09-25 01:07:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-25 02:07:22 +0900 |
commit | 46245b830a24930ab36f8ce2831325cdd1da17d3 (patch) | |
tree | c96c2a69a30120d2cdf639b72a3bace836417151 /ext/webidl/00_webidl.js | |
parent | 9705efd419ffa05b0d88e788e0ceb77e38078449 (diff) |
fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'ext/webidl/00_webidl.js')
-rw-r--r-- | ext/webidl/00_webidl.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js index b75616354..0b8d5c03d 100644 --- a/ext/webidl/00_webidl.js +++ b/ext/webidl/00_webidl.js @@ -1053,6 +1053,12 @@ }); } } + ObjectDefineProperty(prototype.prototype, SymbolToStringTag, { + value: prototype.name, + enumerable: false, + configurable: true, + writable: false, + }); } window.__bootstrap ??= {}; |