| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,7 +79,6 @@ overrides: | |||
| 79 | 79 | - internet/*.js | |
| 80 | 80 | - js-native-api/*/*.js | |
| 81 | 81 | - known_issues/*.js | |
| 82 | - - node-api/*/*.js | ||
| 83 | 82 | - parallel/*.js | |
| 84 | 83 | - parallel/*.mjs | |
| 85 | 84 | - pummel/*.js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ async_hooks.createHook({ | |||
| 29 | 29 | if (testId === id) { | |
| 30 | 30 | events.push({ type: 'destroy', id }); | |
| 31 | 31 | } | |
| 32 | - } | ||
| 32 | + }, | ||
| 33 | 33 | }).enable(); | |
| 34 | 34 | ||
| 35 | 35 | const resource = { foo: 'foo' }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ const test_hook = async_hooks.createHook({ | |||
| 34 | 34 | test_hook.enable(); | |
| 35 | 35 | const asyncResource = createAsyncResource( | |
| 36 | 36 | { foo: 'bar' }, | |
| 37 | - /* destroy_on_finalizer */false | ||
| 37 | + /* destroy_on_finalizer */false, | ||
| 38 | 38 | ); | |
| 39 | 39 | ||
| 40 | 40 | // Trigger GC. This does *not* use global.gc(), because what we want to verify | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,7 @@ const resourceWrap = createAsyncResource( | |||
| 35 | 35 | /** | |
| 36 | 36 | * set resource to NULL to generate a managed resource object | |
| 37 | 37 | */ | |
| 38 | - undefined | ||
| 38 | + undefined, | ||
| 39 | 39 | ); | |
| 40 | 40 | ||
| 41 | 41 | assert.strictEqual(hook_result.destroy_called, false); | |
@@ -44,15 +44,15 @@ makeCallback(resourceWrap, recv, function callback() { | |||
| 44 | 44 | assert.strictEqual(hook_result.destroy_called, false); | |
| 45 | 45 | assert.strictEqual( | |
| 46 | 46 | hook_result.resource, | |
| 47 | - async_hooks.executionAsyncResource() | ||
| 47 | + async_hooks.executionAsyncResource(), | ||
| 48 | 48 | ); | |
| 49 | 49 | assert.strictEqual(this, recv); | |
| 50 | 50 | ||
| 51 | 51 | setImmediate(() => { | |
| 52 | 52 | assert.strictEqual(hook_result.destroy_called, false); | |
| 53 | 53 | assert.notStrictEqual( | |
| 54 | 54 | hook_result.resource, | |
| 55 | - async_hooks.executionAsyncResource() | ||
| 55 | + async_hooks.executionAsyncResource(), | ||
| 56 | 56 | ); | |
| 57 | 57 | ||
| 58 | 58 | destroyAsyncResource(resourceWrap); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ async_hooks.createHook({ | |||
| 31 | 31 | after: common.mustCall((id) => { | |
| 32 | 32 | assert.strictEqual(id, expectedId); | |
| 33 | 33 | insideHook = false; | |
| 34 | - }) | ||
| 34 | + }), | ||
| 35 | 35 | }).enable(); | |
| 36 | 36 | ||
| 37 | 37 | runInCallbackScope(expectedResource, expectedResourceType, () => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ tmpdir.refresh(); | |||
| 34 | 34 | fs.rmSync(urlTestDir, { | |
| 35 | 35 | force: true, | |
| 36 | 36 | recursive: true, | |
| 37 | - maxRetries: 256 | ||
| 37 | + maxRetries: 256, | ||
| 38 | 38 | }); | |
| 39 | 39 | } | |
| 40 | 40 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,9 +57,9 @@ function test(shouldFail, resources) { | |||
| 57 | 57 | ||
| 58 | 58 | test(false, [{ | |
| 59 | 59 | url: depURL, | |
| 60 | - integrity: `sha256-${hash('sha256', depBody)}` | ||
| 60 | + integrity: `sha256-${hash('sha256', depBody)}`, | ||
| 61 | 61 | }]); | |
| 62 | 62 | test(true, [{ | |
| 63 | 63 | url: depURL, | |
| 64 | - integrity: `sha256akjsalkjdlaskjdk-${hash('sha256', depBody)}` | ||
| 64 | + integrity: `sha256akjsalkjdlaskjdk-${hash('sha256', depBody)}`, | ||
| 65 | 65 | }]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ function testUnref(queueSize) { | |||
| 63 | 63 | return new Promise((resolve, reject) => { | |
| 64 | 64 | let output = ''; | |
| 65 | 65 | const child = fork(__filename, ['child', queueSize], { | |
| 66 | - stdio: [process.stdin, 'pipe', process.stderr, 'ipc'] | ||
| 66 | + stdio: [process.stdin, 'pipe', process.stderr, 'ipc'], | ||
| 67 | 67 | }); | |
| 68 | 68 | child.on('close', (code) => { | |
| 69 | 69 | if (code === 0) { | |
@@ -99,7 +99,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 99 | 99 | .then(() => testWithJSMarshaller({ | |
| 100 | 100 | threadStarter: 'StartThread', | |
| 101 | 101 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 102 | - quitAfter: binding.ARRAY_LENGTH | ||
| 102 | + quitAfter: binding.ARRAY_LENGTH, | ||
| 103 | 103 | })) | |
| 104 | 104 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 105 | 105 | ||
@@ -110,7 +110,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 110 | 110 | .then(() => testWithJSMarshaller({ | |
| 111 | 111 | threadStarter: 'StartThreadNoJsFunc', | |
| 112 | 112 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 113 | - quitAfter: binding.ARRAY_LENGTH | ||
| 113 | + quitAfter: binding.ARRAY_LENGTH, | ||
| 114 | 114 | })) | |
| 115 | 115 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 116 | 116 | ||
@@ -119,7 +119,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 119 | 119 | .then(() => testWithJSMarshaller({ | |
| 120 | 120 | threadStarter: 'StartThread', | |
| 121 | 121 | maxQueueSize: 0, | |
| 122 | - quitAfter: binding.ARRAY_LENGTH | ||
| 122 | + quitAfter: binding.ARRAY_LENGTH, | ||
| 123 | 123 | })) | |
| 124 | 124 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 125 | 125 | ||
@@ -128,7 +128,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 128 | 128 | .then(() => testWithJSMarshaller({ | |
| 129 | 129 | threadStarter: 'StartThreadNonblocking', | |
| 130 | 130 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 131 | - quitAfter: binding.ARRAY_LENGTH | ||
| 131 | + quitAfter: binding.ARRAY_LENGTH, | ||
| 132 | 132 | })) | |
| 133 | 133 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 134 | 134 | ||
@@ -137,7 +137,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 137 | 137 | .then(() => testWithJSMarshaller({ | |
| 138 | 138 | threadStarter: 'StartThread', | |
| 139 | 139 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 140 | - quitAfter: 1 | ||
| 140 | + quitAfter: 1, | ||
| 141 | 141 | })) | |
| 142 | 142 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 143 | 143 | ||
@@ -146,7 +146,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 146 | 146 | .then(() => testWithJSMarshaller({ | |
| 147 | 147 | threadStarter: 'StartThread', | |
| 148 | 148 | maxQueueSize: 0, | |
| 149 | - quitAfter: 1 | ||
| 149 | + quitAfter: 1, | ||
| 150 | 150 | })) | |
| 151 | 151 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 152 | 152 | ||
@@ -155,7 +155,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 155 | 155 | .then(() => testWithJSMarshaller({ | |
| 156 | 156 | threadStarter: 'StartThreadNonblocking', | |
| 157 | 157 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 158 | - quitAfter: 1 | ||
| 158 | + quitAfter: 1, | ||
| 159 | 159 | })) | |
| 160 | 160 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 161 | 161 | ||
@@ -166,7 +166,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 166 | 166 | threadStarter: 'StartThread', | |
| 167 | 167 | quitAfter: 1, | |
| 168 | 168 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 169 | - launchSecondary: true | ||
| 169 | + launchSecondary: true, | ||
| 170 | 170 | })) | |
| 171 | 171 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 172 | 172 | ||
@@ -177,7 +177,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 177 | 177 | threadStarter: 'StartThreadNonblocking', | |
| 178 | 178 | quitAfter: 1, | |
| 179 | 179 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 180 | - launchSecondary: true | ||
| 180 | + launchSecondary: true, | ||
| 181 | 181 | })) | |
| 182 | 182 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 183 | 183 | ||
@@ -187,7 +187,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 187 | 187 | threadStarter: 'StartThread', | |
| 188 | 188 | quitAfter: 1, | |
| 189 | 189 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 190 | - abort: true | ||
| 190 | + abort: true, | ||
| 191 | 191 | })) | |
| 192 | 192 | .then((result) => assert.strictEqual(result.indexOf(0), -1)) | |
| 193 | 193 | ||
@@ -197,7 +197,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 197 | 197 | threadStarter: 'StartThread', | |
| 198 | 198 | quitAfter: 1, | |
| 199 | 199 | maxQueueSize: 0, | |
| 200 | - abort: true | ||
| 200 | + abort: true, | ||
| 201 | 201 | })) | |
| 202 | 202 | .then((result) => assert.strictEqual(result.indexOf(0), -1)) | |
| 203 | 203 | ||
@@ -207,7 +207,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 207 | 207 | threadStarter: 'StartThreadNonblocking', | |
| 208 | 208 | quitAfter: 1, | |
| 209 | 209 | maxQueueSize: binding.MAX_QUEUE_SIZE, | |
| 210 | - abort: true | ||
| 210 | + abort: true, | ||
| 211 | 211 | })) | |
| 212 | 212 | .then((result) => assert.strictEqual(result.indexOf(0), -1)) | |
| 213 | 213 | ||
@@ -216,7 +216,7 @@ new Promise(function testWithoutJSMarshaller(resolve) { | |||
| 216 | 216 | .then(() => testWithJSMarshaller({ | |
| 217 | 217 | threadStarter: 'StartThreadNonblocking', | |
| 218 | 218 | maxQueueSize: binding.ARRAY_LENGTH >>> 1, | |
| 219 | - quitAfter: binding.ARRAY_LENGTH | ||
| 219 | + quitAfter: binding.ARRAY_LENGTH, | ||
| 220 | 220 | })) | |
| 221 | 221 | .then((result) => assert.deepStrictEqual(result, expectedArray)) | |
| 222 | 222 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ const binding = require(`./build/${common.buildType}/binding`); | |||
| 7 | 7 | process.on( | |
| 8 | 8 | 'uncaughtException', | |
| 9 | 9 | common.mustNotCall('uncaught callback errors should be suppressed ' + | |
| 10 | - 'with the option --no-force-node-api-uncaught-exceptions-policy') | ||
| 10 | + 'with the option --no-force-node-api-uncaught-exceptions-policy'), | ||
| 11 | 11 | ); | |
| 12 | 12 | ||
| 13 | 13 | binding.CallIntoModule( | |
@@ -18,5 +18,5 @@ binding.CallIntoModule( | |||
| 18 | 18 | 'resource_name', | |
| 19 | 19 | common.mustCall(function finalizer() { | |
| 20 | 20 | throw new Error('finalizer error'); | |
| 21 | - }) | ||
| 21 | + }), | ||
| 22 | 22 | ); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,5 +23,5 @@ binding.CallIntoModule( | |||
| 23 | 23 | 'resource_name', | |
| 24 | 24 | common.mustCall(function finalizer() { | |
| 25 | 25 | throw new Error('finalizer error'); | |
| 26 | - }) | ||
| 26 | + }), | ||
| 27 | 27 | ); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments