Fixes microsoft/monaco-editor#1937: Remove debugger statement

pull/2748/head
Alex Dima 4 years ago
parent e31737a45d
commit 8381cb3579
No known key found for this signature in database
GPG Key ID: 6E58D7B045760DA0

@ -54,11 +54,14 @@ export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
/^( +)var result = ts\.sys\.require\(.*$/m,
'$1// MONACOCHANGE\n$1var result = undefined;\n$1// END MONACOCHANGE'
);
tsServices = tsServices.replace(
/^( +)fs = require\("fs"\);$/m,
'$1// MONACOCHANGE\n$1fs = undefined;\n$1// END MONACOCHANGE'
);
tsServices = tsServices.replace(
/^( +)debugger;$/m,
'$1// MONACOCHANGE\n$1// debugger;\n$1// END MONACOCHANGE'
);
// Flag any new require calls (outside comments) so they can be corrected preemptively.
// To avoid missing cases (or using an even more complex regex), temporarily remove comments

@ -2467,7 +2467,9 @@ var ts;
return true;
}
function fail(message, stackCrawlMark) {
debugger;
// MONACOCHANGE
// debugger;
// END MONACOCHANGE
var e = new Error(message ? "Debug Failure. " + message : "Debug Failure.");
if (Error.captureStackTrace) {
Error.captureStackTrace(e, stackCrawlMark || fail);

@ -2467,7 +2467,9 @@ var ts;
return true;
}
function fail(message, stackCrawlMark) {
debugger;
// MONACOCHANGE
// debugger;
// END MONACOCHANGE
var e = new Error(message ? "Debug Failure. " + message : "Debug Failure.");
if (Error.captureStackTrace) {
Error.captureStackTrace(e, stackCrawlMark || fail);

Loading…
Cancel
Save