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 broken require in repl #1

Merged
merged 2 commits into from
Sep 16, 2016
Merged

Fix broken require in repl #1

merged 2 commits into from
Sep 16, 2016

Conversation

bbqsrc
Copy link
Contributor

@bbqsrc bbqsrc commented Sep 16, 2016

Doing require("r-result") in the repl will error out due to trying to run inspect function on the module.exports object.

Copy link
Owner

@Havvy Havvy left a comment

Choose a reason for hiding this comment

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

Two minor nits.

@@ -205,6 +205,11 @@ const methodToFunction = function (method) {
};

Object.keys(methods).forEach(function (key) {
// Breaks require in repl
if (key === "inspect") {
return
Copy link
Owner

@Havvy Havvy Sep 16, 2016

Choose a reason for hiding this comment

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

Missing semicolon;

@@ -205,6 +205,11 @@ const methodToFunction = function (method) {
};

Object.keys(methods).forEach(function (key) {
// Breaks require in repl
Copy link
Owner

Choose a reason for hiding this comment

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

Please add a NOTE(fmtq): prefix to the comment. (Or whichever name you have there)

@Havvy Havvy merged commit 9088985 into Havvy:master Sep 16, 2016
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