From a0568e575f14fe94751550dfedec9f49458a28a4 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Mon, 29 Jan 2024 22:57:25 -0800 Subject: [PATCH] chore(ses): Reapply hardened typed array configurable properties test Closes #1053 --- packages/ses/test/test-make-hardener.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/ses/test/test-make-hardener.js b/packages/ses/test/test-make-hardener.js index 189db26fe3..0ea0042bd2 100644 --- a/packages/ses/test/test-make-hardener.js +++ b/packages/ses/test/test-make-hardener.js @@ -86,8 +86,12 @@ test('harden typed arrays', t => { t.truthy(Object.isSealed(a)); const descriptor = Object.getOwnPropertyDescriptor(a, '0'); t.is(descriptor.value, a[0]); - // Fails in Node.js 14 and earlier due to an engine bug: - // t.is(descriptor.configurable, true, 'hardened typed array indexed property remains configurable'); + // Failed in Node.js 14 and earlier due to an engine bug: + t.is( + descriptor.configurable, + true, + 'hardened typed array indexed property remains configurable', + ); // Note that indexes of typed arrays are exceptionally writable for hardened objects. t.is( descriptor.writable, @@ -187,8 +191,12 @@ test('harden typed arrays and their expandos', t => { { value: 0, writable: true, enumerable: true }, 'hardened typed array index property', ); - // Fails in Node.js 14 and earlier due to an engine bug: - // t.is(descriptor.configurable, true, 'typed array indexed property is configurable'); + // Failed in Node.js 14 and earlier due to an engine bug: + t.is( + descriptor.configurable, + true, + 'typed array indexed property is configurable', + ); // Note that indexes of typed arrays are exceptionally writable for hardened objects: }