const e = makeError('test error');
// I include this test because I was recently surprised that the errors
// make by `makeError` are not frozen, and therefore not passable.
t.false(Object.isFrozen(e));
t.false(isPassable(e));
const e2 = toPassableError(e);
t.is(e, e2);
t.true (Object.isFrozen(e)); // currently fails
t.true(isPassable(e)); // currently fails
Describe the bug
isPassableError
,assertPassableError
, andtoPassableError
judge non-frozen errors to be passable.Steps to reproduce
PR https://github.com/endojs/endo/pull/2156 , which would fix this bug, has the following test case
Expected behavior
The test case shown above to pass
Platform environment