Skip to content

Commit f013f5f

Browse files
committed
fix some typos
1 parent aafd6e4 commit f013f5f

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

internal/bundler_tests/bundler_lower_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func TestLowerExponentiationOperatorNoBundle(t *testing.T) {
8686
13: a[123n] **= b,
8787
14: a[this] **= b,
8888
89-
// These should need capturing (have object identitiy)
89+
// These should need capturing (have object identity)
9090
15: a[/x/] **= b,
9191
16: a[{}] **= b,
9292
17: a[[]] **= b,

internal/bundler_tests/snapshots/snapshots_default.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5201,7 +5201,7 @@ a {
52015201
================================================================================
52025202
TestMinifiedBundleCommonJS
52035203
---------- /out.js ----------
5204-
var t=e(r=>{r.foo=function(){return 123}});var n=e((l,c)=>{c.exports={test:!0}});var{foo:f}=t();console.log(f(),n());
5204+
var t=e(r=>{r.foo=function(){return 123}});var n=e((q,f)=>{f.exports={test:!0}});var{foo:i}=t();console.log(i(),n());
52055205

52065206
================================================================================
52075207
TestMinifiedBundleES6
@@ -5286,7 +5286,7 @@ TestMinifyIdentifiersImportPathFrequencyAnalysis
52865286
var o=123;console.log(o,"no identifier in this file should be named W, X, Y, or Z");
52875287

52885288
---------- /out/require.js ----------
5289-
var i=r((t,e)=>{e.exports=123});var s=i();console.log(s,"no identifier in this file should be named A, B, C, or D");
5289+
var i=s((d,e)=>{e.exports=123});var l=i();console.log(l,"no identifier in this file should be named A, B, C, or D");
52905290

52915291
================================================================================
52925292
TestMinifyNestedLabelsNoBundle

internal/bundler_tests/snapshots/snapshots_importstar.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ var foo = 123;
125125
TestExportSelfCommonJSMinified
126126
---------- /out.js ----------
127127
// entry.js
128-
var r = s((f, e) => {
128+
var r = c((g, e) => {
129129
e.exports = { foo: 123 };
130130
console.log(r());
131131
});

internal/bundler_tests/snapshots/snapshots_lower.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ let tests = {
20412041
12: a[void 0] = __pow(a[void 0], b),
20422042
13: a[/* @__PURE__ */ BigInt("123")] = __pow(a[/* @__PURE__ */ BigInt("123")], b),
20432043
14: a[this] = __pow(a[this], b),
2044-
// These should need capturing (have object identitiy)
2044+
// These should need capturing (have object identity)
20452045
15: a[_f = /x/] = __pow(a[_f], b),
20462046
16: a[_g = {}] = __pow(a[_g], b),
20472047
17: a[_h = []] = __pow(a[_h], b),

internal/bundler_tests/snapshots/snapshots_ts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ console.log(a, b, c, d, e, real);
16061606
================================================================================
16071607
TestTSMinifiedBundleCommonJS
16081608
---------- /out.js ----------
1609-
var t=e(r=>{r.foo=function(){return 123}});var n=e((l,c)=>{c.exports={test:!0}});var{foo:f}=t();console.log(f(),n());
1609+
var t=e(r=>{r.foo=function(){return 123}});var n=e((q,f)=>{f.exports={test:!0}});var{foo:i}=t();console.log(i(),n());
16101610

16111611
================================================================================
16121612
TestTSMinifiedBundleES6

internal/linker/linker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,9 +2431,9 @@ func (c *linkerContext) createWrapperForFile(sourceIndex uint32) {
24312431
// However, that generation is special-cased for various reasons and is
24322432
// done later on. Still, we're going to need to ensure that this file
24332433
// both depends on the "__commonJS" symbol and declares the "require_foo"
2434-
// symbol. Instead of special-casing this during the reachablity analysis
2434+
// symbol. Instead of special-casing this during the reachability analysis
24352435
// below, we just append a dummy part to the end of the file with these
2436-
// dependencies and let the general-purpose reachablity analysis take care
2436+
// dependencies and let the general-purpose reachability analysis take care
24372437
// of it.
24382438
case graph.WrapCJS:
24392439
runtimeRepr := c.graph.Files[runtime.SourceIndex].InputFile.Repr.(*graph.JSRepr)

pkg/api/serve_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package api
99
// esbuild will automatically generate a directory listing page with links for
1010
// each file in the directory. If there is a build configured that generates
1111
// output files, those output files are not written to disk but are instead
12-
// "overlayed" virtually on top of the real file system. The server responds to
12+
// "overlaid" virtually on top of the real file system. The server responds to
1313
// HTTP requests for output files from the build with the latest in-memory
1414
// build results.
1515

0 commit comments

Comments
 (0)