This commit is contained in:
2026-07-26 21:23:30 +00:00
parent 6fa0e1b9a6
commit 7c262aeb8b
60 changed files with 2359 additions and 582 deletions
+16
View File
@@ -28,6 +28,22 @@ test('getSideChannel', function (t) {
channel.set(o, 'data');
st.doesNotThrow(function () { channel.assert(o); }, 'existent value noops');
var accessed = false;
var trap = {};
Object.defineProperty(trap, 'foo', {
enumerable: true,
get: function () {
accessed = true;
return 1;
}
});
st['throws'](
function () { channel.assert(trap); },
TypeError,
'missing object key throws'
);
st.equal(accessed, false, 'a missing object key is not observably accessed');
st.end();
});