You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
assert: confusion between JS strict mode and assert strict mode #30485
Hi maintainers,
I was just going through the docs of the assert module and was confused with the whole idea of strict mode there. It'd great if someone can give a brief idea behind the way it is implemented now and the reasoning behind it.
PS: I literally tried adding "use strict"; hoping it'd be picked up.
Activity
BridgeAR commentedon Nov 14, 2019
The assert
strict modeis completely independent from the JavaScript strict mode ("use strict").Using assert's strict mode means e.g.
assert.equal()to behave identical toassert.strictEqual().BridgeAR commentedon Nov 14, 2019
If you have a recommendation to improve the documentation, please open a PR for that :)
doc: adds assert doc for strict mode with pointer to strict equality
shobhitchittora commentedon Nov 14, 2019
@BridgeAR added some content to point the differences out. Please take a look if the change is okay.
doc: adds assert doc for strict mode with pointer to strict equality
doc: adds assert doc for strict mode with pointer to strict equality
doc: adds assert doc for strict mode with pointer to strict equality
doc: adds assert doc for strict mode with pointer to strict equality
juanarbol commentedon Mar 27, 2020
Ping @BridgeAR I think this issue can be closed now.
shobhitchittora commentedon Apr 5, 2020
Yes @juanarbol! This can be closed now.
Fixed here -> #30486