Skip to content

Commit 52a44a6

Browse files
authored
Merge pull request #21399 from calixteman/update_quickjs_3d5e064
Update quickjs to rev 3d5e064e9dd67c70f7962836505a7fa067bf0a4e
2 parents ff88446 + 7a7e4fd commit 52a44a6

3 files changed

Lines changed: 10 additions & 20 deletions

File tree

external/quickjs/quickjs-eval.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

external/quickjs/quickjs-eval.wasm

35.7 KB
Binary file not shown.

src/scripting_api/app_utils.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ const makeArr = () => [];
3232
const makeMap = () => new Map();
3333

3434
if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
35-
// TODO: Remove this once `Math.sumPrecise` is supported in QuickJS.
36-
//
37-
// Note that this isn't a "proper" polyfill, but since we're only using it to
38-
// replace `Array.prototype.reduce()` invocations it should be fine.
39-
if (typeof Math.sumPrecise !== "function") {
40-
Math.sumPrecise = function (numbers) {
41-
return numbers.reduce((a, b) => a + b, 0);
42-
};
43-
}
44-
4535
// TODO: Remove this once `Map.prototype.getOrInsertComputed` is supported in
4636
// QuickJS.
4737
if (typeof Map.prototype.getOrInsertComputed !== "function") {

0 commit comments

Comments
 (0)