| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ const { | |||
| 6 | 6 | makeBufferInNewContext, | |
| 7 | 7 | } = require(`./build/${common.buildType}/binding`); | |
| 8 | 8 | ||
| 9 | - // Because the `Buffer` function and its protoype property only (currently) | ||
| 9 | + // Because the `Buffer` function and its prototype property only (currently) | ||
| 10 | 10 | // exist in a Node.js instance’s main context, trying to create buffers from | |
| 11 | 11 | // another context throws an exception. | |
| 12 | 12 | assert.throws( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const { getProviders } = require(`./build/${common.buildType}/binding`); | |||
| 13 | 13 | ||
| 14 | 14 | // For the providers defined here, the expectation is that the listed ciphers | |
| 15 | 15 | // and hash algorithms are only provided by the named provider. These are for | |
| 16 | - // basic checks and are not intended to list evey cipher or hash algorithm | ||
| 16 | + // basic checks and are not intended to list every cipher or hash algorithm | ||
| 17 | 17 | // supported by the provider. | |
| 18 | 18 | const providers = { | |
| 19 | 19 | 'default': { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -251,7 +251,7 @@ function _validateContent(report, fields = []) { | |||
| 251 | 251 | assert(typeof usage.free_memory, 'string'); | |
| 252 | 252 | assert(typeof usage.total_memory, 'string'); | |
| 253 | 253 | assert(typeof usage.available_memory, 'string'); | |
| 254 | - // This field may not exsit | ||
| 254 | + // This field may not exist | ||
| 255 | 255 | if (report.resourceUsage.constrained_memory) { | |
| 256 | 256 | assert(typeof report.resourceUsage.constrained_memory, 'string'); | |
| 257 | 257 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,7 +173,7 @@ function testCompileStreamingRejectionUsingFetch(responseCallback, rejection) { | |||
| 173 | 173 | "'application/octet-stream'" | |
| 174 | 174 | }); | |
| 175 | 175 | ||
| 176 | - // HTTP status code indiciating an error. | ||
| 176 | + // HTTP status code indicating an error. | ||
| 177 | 177 | await testCompileStreamingRejectionUsingFetch((res) => { | |
| 178 | 178 | res.statusCode = 418; | |
| 179 | 179 | res.setHeader('Content-Type', 'application/wasm'); | |
@@ -184,7 +184,7 @@ function testCompileStreamingRejectionUsingFetch(responseCallback, rejection) { | |||
| 184 | 184 | message: /^WebAssembly response has status code 418$/ | |
| 185 | 185 | }); | |
| 186 | 186 | ||
| 187 | - // HTTP status code indiciating an error, but using a Response whose body is | ||
| 187 | + // HTTP status code indicating an error, but using a Response whose body is | ||
| 188 | 188 | // a Buffer instead of calling fetch(). | |
| 189 | 189 | await testCompileStreamingSuccess(() => { | |
| 190 | 190 | return Promise.resolve(new Response(simpleWasmBytes, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -617,7 +617,7 @@ | |||
| 617 | 617 | } else { | |
| 618 | 618 | indent = cap[2].search(/[^ ]/); // Find first non-space char | |
| 619 | 619 | ||
| 620 | - indent = cap[1].length + (indent > 4 ? 1 : indent); // intented code blocks after 4 spaces; indent is always 1 | ||
| 620 | + indent = cap[1].length + (indent > 4 ? 1 : indent); // indented code blocks after 4 spaces; indent is always 1 | ||
| 621 | 621 | ||
| 622 | 622 | itemContents = lines[0].slice(indent - cap[1].length); | |
| 623 | 623 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | const sources = { | |
| 2 | - // Virtual file. Dosen't exist on disk | ||
| 2 | + // Virtual file. Doesn't exist on disk | ||
| 3 | 3 | "virtual.js": ` | |
| 4 | 4 | import { test } from 'node:test'; | |
| 5 | 5 | test('test', async () => {}); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -180,7 +180,7 @@ const formPostFileUploadTest = ({ | |||
| 180 | 180 | ||
| 181 | 181 | // Used to verify that the browser agrees with the test about | |
| 182 | 182 | // field value replacement and encoding independently of file system | |
| 183 | - // idiosyncracies. | ||
| 183 | + // idiosyncrasies. | ||
| 184 | 184 | form.append(Object.assign(document.createElement('input'), { | |
| 185 | 185 | type: 'hidden', | |
| 186 | 186 | name: 'filename', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ const formDataPostFileUploadTest = ({ | |||
| 34 | 34 | ||
| 35 | 35 | // Used to verify that the browser agrees with the test about | |
| 36 | 36 | // field value replacement and encoding independently of file system | |
| 37 | - // idiosyncracies. | ||
| 37 | + // idiosyncrasies. | ||
| 38 | 38 | formData.append("filename", fileBaseName); | |
| 39 | 39 | ||
| 40 | 40 | // Same, but with name and value reversed to ensure field names | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ | |||
| 31 | 31 | ||
| 32 | 32 | function onOverscroll(event) { | |
| 33 | 33 | assert_false(event.cancelable); | |
| 34 | - // overscroll events targetting document are bubbled to the window. | ||
| 34 | + // overscroll events targeting document are bubbled to the window. | ||
| 35 | 35 | assert_true(event.bubbles); | |
| 36 | 36 | window_received_overscroll = true; | |
| 37 | 37 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,7 @@ const MAX_UNCHANGED_FRAMES = 20; | |||
| 88 | 88 | function waitFor(condition, error_message = 'Reaches the maximum frames.') { | |
| 89 | 89 | return new Promise((resolve, reject) => { | |
| 90 | 90 | function tick(frames) { | |
| 91 | - // We requestAnimationFrame either for MAX_FRAM frames or until condition | ||
| 91 | + // We requestAnimationFrame either for MAX_FRAME frames or until condition | ||
| 92 | 92 | // is met. | |
| 93 | 93 | if (frames >= MAX_FRAME) | |
| 94 | 94 | reject(error_message); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments