Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix toString() output #500

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Fix toString() output #500

merged 2 commits into from
Aug 26, 2024

Conversation

fatso83
Copy link
Contributor

@fatso83 fatso83 commented Aug 26, 2024

The output when just inheriting was
function() { [native code] }
vs
function Date() { [native code] }
in the real Date object.

I had to make a choice between having the same function identity and function output and opted for the latter,
since that is what the mother sinon project targets.

Purpose (TL;DR) - mandatory

The output when just inheriting was
function() { [native code] }
vs
function Date() { [native code] }
in the real Date object.

I had to make a choice between having the same function identity and function output and opted for the latter,
since that is what the mother sinon project targets.
This was present in Sinon and should be here as well
@fatso83 fatso83 merged commit 13024b8 into sinonjs:main Aug 26, 2024
10 of 11 checks passed
@fatso83 fatso83 deleted the fix-to-string branch August 26, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant