Skip to content

Commit 581069b

Browse files
committed
spelling: uncaught
1 parent b923fff commit 581069b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/ContextModule.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function webpackAsyncContext(req) {
373373
}
374374
function webpackAsyncContextResolve(req) {
375375
// Here Promise.resolve().then() is used instead of new Promise() to prevent
376-
// uncatched exception popping up in devtools
376+
// uncaught exception popping up in devtools
377377
return Promise.resolve().then(function() {
378378
var id = map[req];
379379
if(!(id + 1)) { // check for number or string
@@ -410,7 +410,7 @@ function webpackAsyncContext(req) {
410410
}
411411
function webpackAsyncContextResolve(req) {
412412
// Here Promise.resolve().then() is used instead of new Promise() to prevent
413-
// uncatched exception popping up in devtools
413+
// uncaught exception popping up in devtools
414414
return Promise.resolve().then(function() {
415415
var id = map[req];
416416
if(!(id + 1)) { // check for number or string
@@ -547,7 +547,7 @@ webpackEmptyContext.id = ${JSON.stringify(id)};`;
547547
getSourceForEmptyAsyncContext(id) {
548548
return `function webpackEmptyAsyncContext(req) {
549549
// Here Promise.resolve().then() is used instead of new Promise() to prevent
550-
// uncatched exception popping up in devtools
550+
// uncaught exception popping up in devtools
551551
return Promise.resolve().then(function() {
552552
var e = new Error('Cannot find module "' + req + '".');
553553
e.code = 'MODULE_NOT_FOUND';

lib/MainTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const SyncBailHook = require("tapable").SyncBailHook;
2727
// __webpack_require__.n = compatibility get default export
2828
// __webpack_require__.h = the webpack hash
2929
// __webpack_require__.w = an object containing all installed WebAssembly.Modules keys by module id
30-
// __webpack_require__.oe = the uncatched error handler for the webpack runtime
30+
// __webpack_require__.oe = the uncaught error handler for the webpack runtime
3131
// __webpack_require__.nc = the script nonce
3232

3333
module.exports = class MainTemplate extends Tapable {

lib/node/NodeMainTemplatePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = class NodeMainTemplatePlugin {
4343
return Template.asString([
4444
source,
4545
"",
46-
"// uncatched error handler for webpack runtime",
46+
"// uncaught error handler for webpack runtime",
4747
`${mainTemplate.requireFn}.oe = function(err) {`,
4848
Template.indent([
4949
"process.nextTick(function() {",

test/ConfigTestCases.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ describe("ConfigTestCases", () => {
106106
)
107107
)
108108
return;
109-
// Wait for uncatched errors to occur
109+
// Wait for uncaught errors to occur
110110
return setTimeout(done, 200);
111111
}
112112
const statOptions = Stats.presetToOptions("verbose");

0 commit comments

Comments
 (0)