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

feat(node): Add console module #892

Merged
merged 1 commit into from
May 1, 2021
Merged

Conversation

Liamolucko
Copy link
Contributor

This just exports the console object.

I tried enabling the Node console tests, but all of them either don't work or don't really apply.

Note that Deno's console doesn't have all the same methods as Node's, so this isn't a perfect polyfill. Node has these extra properties:

  • Console
  • context
  • profile
  • profileEnd
  • timeStamp

I've marked it as partly implemented for now, although I don't know whether those APIs are worth polyfilling.

This just exports the `console` object.

I tried enabling the Node console tests, but all of them either don't work or don't really apply.

Note that Deno's console doesn't have all the same methods as Node's, so this isn't a perfect polyfill. Node has these extra properties:
- `Console`
- `context`
- `profile`
- `profileEnd`
- `timeStamp`

I've marked it as partly implemented for now, although I don't know whether those APIs are worth polyfilling.
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Liamolucko LGTM. Thanks!

I didn't know this is a module in node.js.

@kt3k kt3k merged commit ebafcb6 into denoland:main May 1, 2021
@Liamolucko Liamolucko deleted the node_console branch May 1, 2021 23:22
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.

2 participants