playwright-core1.65.13.5 MB
Shown as plain text from the published tarball, after apm checked it against the version's checksum. Nothing in it runs on this page.
var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
var ENVIRONMENT_IS_NODE = globalThis.process?.versions?.node && globalThis.process?.type != "renderer";
var programArgs = [];
var thisProgram = "./this.program";
var quit_ = (status, toThrow) => {
throw toThrow;
};
if (typeof __filename != "undefined") {
_scriptName = __filename;
} else {
}
var scriptDirectory = "";
function locateFile(path66) {
if (Module2["locateFile"]) {
return Module2["locateFile"](path66, scriptDirectory);
}
return scriptDirectory + path66;
}
var readAsync, readBinary;
if (ENVIRONMENT_IS_NODE) {
var fs71 = require("node:fs");
scriptDirectory = __dirname + "/";
readBinary = (filename) => {
filename = isFileURI(filename) ? new URL(filename) : filename;
var ret = fs71.readFileSync(filename);
return ret;
};
readAsync = async (filename, binary = true) => {
filename = isFileURI(filename) ? new URL(filename) : filename;
var ret = fs71.readFileSync(filename, binary ? void 0 : "utf8");
return ret;
};
if (process.argv.length > 1) {
thisProgram = process.argv[1].replace(/\\/g, "/");
}
programArgs = process.argv.slice(2);
quit_ = (status, toThrow) => {
process.exitCode = status;
throw toThrow;
};
} else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
This file is 3.5 MB, over the 1.0 MB the full view shows, so apm shows the lines around the cited one. Lines longer than 4 kB are cut.