Let's add the following intervention to resolve an issue with missing content, for both mobile and desktop: ``` const originalMath = Math; const originalPow = Math.pow; Object.defineProperty(window.Math.wrappedJSObject, "pow", { value: exportFunction(function(base, exponent) { console.log('override', base, exponent) if (exponent === -100 && base === originalMath.PI){ return Number('1.9275814160560185e-50') } return originalPow.call(originalMath, base, exponent); }, window), }); ``` See more information in this comment https://bugzilla.mozilla.org/show_bug.cgi?id=1784111#c4
Bug 1784309 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Let's add the following intervention to resolve an issue with missing content, for both mobile and desktop: ```js const originalMath = Math; const originalPow = Math.pow; Object.defineProperty(window.Math.wrappedJSObject, "pow", { value: exportFunction(function(base, exponent) { console.log('override', base, exponent) if (exponent === -100 && base === originalMath.PI){ return Number('1.9275814160560185e-50') } return originalPow.call(originalMath, base, exponent); }, window), }); ``` See more information in this comment https://bugzilla.mozilla.org/show_bug.cgi?id=1784111#c4