From e8d15318d38f4ef1f0459c95a212cabf0bcb8008 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Fri, 10 Nov 2023 14:11:45 -0500 Subject: [PATCH] Fix #8392: Ensure `toString` returns expected value on `Object` --- Sources/Brave/Frontend/UserContent/UserScripts/__firefox__.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Brave/Frontend/UserContent/UserScripts/__firefox__.js b/Sources/Brave/Frontend/UserContent/UserScripts/__firefox__.js index bdf5b013210..e6913778dd9 100644 --- a/Sources/Brave/Frontend/UserContent/UserScripts/__firefox__.js +++ b/Sources/Brave/Frontend/UserContent/UserScripts/__firefox__.js @@ -73,7 +73,7 @@ if (!window.__firefox__) { if ($Object.isExtensible(value)) { const description = (typeof value === 'function') ? `function ${ typeof value.name !== 'undefined' ? value.name : "" }() {\n [native code]\n}` : - '[object Object]'; + 'function toString() {\n [native code]\n}'; const toString = function() { return description;