[immutable-arraybuffer] Atomics#4554
Conversation
8e83a8d to
28a2175
Compare
28a2175 to
54c439c
Compare
ptomato
left a comment
There was a problem hiding this comment.
All comments/questions are nonblocking.
There was a problem hiding this comment.
What is actually the difference between this file and non-shared-int-views-throws.js in what's being tested? They seem identical except for the value being exchanged. Could one of them just be deleted?
There was a problem hiding this comment.
Excellent observation! Done.
| assert.throws(TypeError, function() { | ||
| Atomics.and(view, 0, 1); | ||
| }, `Atomics.and(new ${TA.name}(buffer), 0, 1) throws TypeError`); | ||
| }, ["arraybuffer"], ["immutable"]); |
There was a problem hiding this comment.
If I'm reading this correctly, "immutable" is being removed from the exclude list, so this test will now run on immutable buffers as well. But all new coverage in this file is also already covered in and/immutable-buffer.js, because that runs on all typed array constructors. I don't know if that's actually a problem; probably not.
There was a problem hiding this comment.
I think there probably is room for such consolidation, but out of scope here, and the focus is sufficiently different that I would want to see it in a dedicated sweep.
36b4346 to
e0848a8
Compare
Ref #4509