playwright-core1.65.13.2 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.
if (options2.environment) {
environment = options2.environment;
if (["node", "browser", "auto"].indexOf(environment) === -1) {
throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}");
}
}
if (options2.retrieveFile) {
if (options2.overrideRetrieveFile) {
retrieveFileHandlers.length = 0;
}
retrieveFileHandlers.unshift(options2.retrieveFile);
}
if (options2.retrieveSourceMap) {
if (options2.overrideRetrieveSourceMap) {
retrieveMapHandlers.length = 0;
}
retrieveMapHandlers.unshift(options2.retrieveSourceMap);
}
if (options2.hookRequire && !isInBrowser()) {
var Module = dynamicRequire(module2, "module");
var $compile = Module.prototype._compile;
if (!$compile.__sourceMapSupport) {
Module.prototype._compile = function(content, filename) {
fileContentsCache[filename] = content;
sourceMapCache[filename] = void 0;
return $compile.call(this, content, filename);
};
Module.prototype._compile.__sourceMapSupport = true;
}
}
if (!emptyCacheBetweenOperations) {
emptyCacheBetweenOperations = "emptyCacheBetweenOperations" in options2 ? options2.emptyCacheBetweenOperations : false;
}
if (!errorFormatterInstalled) {
errorFormatterInstalled = true;
Error.prepareStackTrace = prepareStackTrace;
}
if (!uncaughtShimInstalled) {
var installHandler = "handleUncaughtExceptions" in options2 ? options2.handleUncaughtExceptions : true;
try {
var worker_threads = dynamicRequire(module2, "worker_threads");
This file is 3.2 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.