File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
scripts/emulator-testing/emulators Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ export abstract class Emulator {
5757 const filepath = path . resolve ( tempDir , this . binaryName ) ;
5858 return new Promise < void > ( ( resolve , reject ) => {
5959 /**
60- * Once the download is `done` in `readChunk`, we want to set `this.binaryPath` to the path of the
60+ * Once the download is `done` in `readChunk`, we want to set `this.binaryPath` to the path of the
6161 * downloaded emulator. Unfortunately, we can't access `this` when inside `readChunk`'s scope, since
6262 * it's a named function expression, and does not inherit the `this` object from it's parent.
63- * To work around this, we wrap the fetch in a promise,
63+ * To work around this, we wrap the fetch in a promise,
6464 * then once it's resolved we can access `this` in a callback arrow function that *does* inherit
6565 * `this` from the parent object, allowing us to set `this.binaryPath`.
6666 * Note that we can't make readChunk an arrow function, since it needs to be named so that we can
You can’t perform that action at this time.
0 commit comments