pdfjs: Add some comments to polyfills

This commit is contained in:
Florian Bruhin 2024-12-10 22:15:00 +01:00
parent 86e2573c39
commit c462cf62e4
1 changed files with 7 additions and 0 deletions

View File

@ -1,7 +1,14 @@
/* eslint-disable strict */
/* (this file gets used as a snippet) */
/*
SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>
SPDX-License-Identifier: GPL-3.0-or-later
*/
(function() {
// Chromium 119 / QtWebEngine 6.8
// https://caniuse.com/mdn-javascript_builtins_promise_withresolvers
if (typeof Promise.withResolvers === "undefined") {
Promise.withResolvers = function() {
let resolve, reject