-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.
Description
Version
v24.0.0-pre
Platform
Darwin prot-2.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031 arm64
Subsystem
No response
What steps will reproduce the bug?
Following what still needed to be done in #54630 , I kept looking for discrepancies between what works with assert.deepStrictEqual and what should work with assert.partialDeepStrictEqual but it does not.
const assert = require('assert');
assert.throws(() => assert.partialDeepStrictEqual(new ArrayBuffer(3), new SharedArrayBuffer(3)), Error);
assert.throws(() => assert.partialDeepStrictEqual(new Int16Array(3), new Uint16Array(3)), Error);
assert.partialDeepStrictEqual(new Int16Array([1, 2, 3]), new Int16Array([1, 2, 3]));
all the tests above will fail, while they should not
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
const assert = require('assert');
assert.throws(() => assert.partialDeepStrictEqual(new ArrayBuffer(3), new SharedArrayBuffer(3)), Error);
assert.throws(() => assert.partialDeepStrictEqual(new Int16Array(3), new Uint16Array(3)), Error);
assert.partialDeepStrictEqual(new Int16Array([1, 2, 3]), new Int16Array([1, 2, 3]));
all the tests above will fail, while they should not
What do you see instead?
the tests above will fail
Additional information
No response
pmarchini
Metadata
Metadata
Assignees
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.