From 46245b830a24930ab36f8ce2831325cdd1da17d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=91=9E=E4=B8=B0?= Date: Sat, 25 Sep 2021 01:07:22 +0800 Subject: fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) Co-authored-by: Luca Casonato Co-authored-by: Yoshiya Hinosawa --- ext/webidl/00_webidl.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/webidl/00_webidl.js') 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 ??= {}; -- cgit v1.2.3