Skip to content

Commit

Permalink
Merge pull request #14392 from Snuffleupagus/polyfill-structuredClone
Browse files Browse the repository at this point in the history
Polyfill `structuredClone` with core-js (PR 13948 follow-up)
  • Loading branch information
Snuffleupagus authored Jan 27, 2022
2 parents 8f6965b + d476186 commit 3e9b092
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 123 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"globals": {
"PDFJSDev": false,
"exports": false,
"structuredClone": false,
"SystemJS": false,
},

Expand Down
10 changes: 9 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,19 @@ function createTestSource(testsName, { bot = false, xfaOnly = false } = {}) {
console.log("### Running " + testsName + " tests");

const PDF_TEST = process.env.PDF_TEST || "test_manifest.json";
let forceNoChrome = false;
const args = ["test.js"];
switch (testsName) {
case "browser":
if (!bot) {
args.push("--reftest");
} else {
const os = process.env.OS;
if (/windows/i.test(os)) {
// The browser-tests are too slow in Google Chrome on the Windows
// bot, causing a timeout, hence disabling them for now.
forceNoChrome = true;
}
}
if (xfaOnly) {
args.push("--xfaOnly");
Expand All @@ -582,7 +590,7 @@ function createTestSource(testsName, { bot = false, xfaOnly = false } = {}) {
if (bot) {
args.push("--strictVerify");
}
if (process.argv.includes("--noChrome")) {
if (process.argv.includes("--noChrome") || forceNoChrome) {
args.push("--noChrome");
}

Expand Down
90 changes: 55 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3",
"canvas": "^2.9.0",
"core-js": "^3.20.2",
"core-js": "^3.20.3",
"cross-env": "^7.0.3",
"dommatrix": "^0.0.24",
"es-module-shims": "^1.4.1",
Expand Down Expand Up @@ -41,7 +41,7 @@
"postcss": "^8.4.5",
"postcss-calc": "^8.2.2",
"prettier": "^2.5.1",
"puppeteer": "^13.0.1",
"puppeteer": "^13.1.2",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^14.2.0",
Expand Down
Loading

0 comments on commit 3e9b092

Please sign in to comment.