Closed jculvey closed 1 month ago
According to https://nodejs.org/api/assert.html#strict-assertion-mode
In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example, assert.deepEqual() will behave like assert.deepStrictEqual().
So implementing the real thing is actually less code than implementing the mocks. Could you please reexport the
node:assert
symbols here instead?
Yeah sure thing. Should I do that a Cloudflare specific polyfill (since nodeless
doesn't have node:assert
), or should we use the try/fallback approach and use these if we detect assert
, otherwise fallback to notImplemented
?
๐ Linked issue
โ Type of change
๐ Description
Since the
workerd
implementation of thenode:assert
module already has strict semantics, we simply need to aliasnode:assert/strict
tonode:assert
to get coverage for the module.๐ Checklist