We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8794372 + 5f83408 commit ea4fe68Copy full SHA for ea4fe68
1 file changed
src/scripting_api/app_utils.js
@@ -31,20 +31,6 @@ function serializeError(error) {
31
const makeArr = () => [];
32
const makeMap = () => new Map();
33
34
-if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
35
- // TODO: Remove this once `Map.prototype.getOrInsertComputed` is supported in
36
- // QuickJS.
37
- if (typeof Map.prototype.getOrInsertComputed !== "function") {
38
- // eslint-disable-next-line no-extend-native
39
- Map.prototype.getOrInsertComputed = function (key, callbackFn) {
40
- if (!this.has(key)) {
41
- this.set(key, callbackFn(key));
42
- }
43
- return this.get(key);
44
- };
45
46
-}
47
-
48
export {
49
FORMS_VERSION,
50
makeArr,
0 commit comments