From 0b2acb3970e1b34355569e3c46c9b14e4e7a9780 Mon Sep 17 00:00:00 2001 From: Andres Bedoya Date: Fri, 21 Jun 2019 16:43:15 -0500 Subject: [PATCH 1/2] test: updating description This description was fixed. Test are working fine, but the description was not correct --- .../test-buffer-failed-alloc-typed-arrays.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-buffer-failed-alloc-typed-arrays.js b/test/parallel/test-buffer-failed-alloc-typed-arrays.js index 59cc7bc8d95e03..6eb47185ce26f8 100644 --- a/test/parallel/test-buffer-failed-alloc-typed-arrays.js +++ b/test/parallel/test-buffer-failed-alloc-typed-arrays.js @@ -1,8 +1,8 @@ -'use strict'; +"use strict"; -require('../common'); -const assert = require('assert'); -const SlowBuffer = require('buffer').SlowBuffer; +require("../common"); +const assert = require("assert"); +const SlowBuffer = require("buffer").SlowBuffer; // Test failed or zero-sized Buffer allocations not affecting typed arrays. // This test exists because of a regression that occurred. Because Buffer @@ -12,7 +12,7 @@ const SlowBuffer = require('buffer').SlowBuffer; // whether or not to zero-fill was not being reset, causing TypedArrays to // allocate incorrectly. const zeroArray = new Uint32Array(10).fill(0); -const sizes = [1e10, 0, 0.1, -1, 'a', undefined, null, NaN]; +const sizes = [1e10, 0, 0.1, -1, "a", undefined, null, NaN]; const allocators = [ Buffer, SlowBuffer, @@ -23,7 +23,7 @@ const allocators = [ for (const allocator of allocators) { for (const size of sizes) { try { - // These allocations are known to fail. If they do, + // Some of these allocations are known to fail. If they do, // Uint32Array should still produce a zeroed out result. allocator(size); } catch { From ebb4ccd496afd5c8a92d537eb5d9710d1b9e5c95 Mon Sep 17 00:00:00 2001 From: Andres Bedoya Date: Fri, 21 Jun 2019 16:48:14 -0500 Subject: [PATCH 2/2] test: updating description This description was fixed. Test are working fine, but the description was not correct --- test/parallel/test-buffer-failed-alloc-typed-arrays.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-buffer-failed-alloc-typed-arrays.js b/test/parallel/test-buffer-failed-alloc-typed-arrays.js index 6eb47185ce26f8..b024f30f4555e1 100644 --- a/test/parallel/test-buffer-failed-alloc-typed-arrays.js +++ b/test/parallel/test-buffer-failed-alloc-typed-arrays.js @@ -1,8 +1,8 @@ -"use strict"; +'use strict'; -require("../common"); -const assert = require("assert"); -const SlowBuffer = require("buffer").SlowBuffer; +require('../common'); +const assert = require('assert'); +const SlowBuffer = require('buffer').SlowBuffer; // Test failed or zero-sized Buffer allocations not affecting typed arrays. // This test exists because of a regression that occurred. Because Buffer @@ -12,7 +12,7 @@ const SlowBuffer = require("buffer").SlowBuffer; // whether or not to zero-fill was not being reset, causing TypedArrays to // allocate incorrectly. const zeroArray = new Uint32Array(10).fill(0); -const sizes = [1e10, 0, 0.1, -1, "a", undefined, null, NaN]; +const sizes = [1e10, 0, 0.1, -1, 'a', undefined, null, NaN]; const allocators = [ Buffer, SlowBuffer,