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

Restyle with ES5 #3

Closed
wants to merge 1 commit into from
Closed

Restyle with ES5 #3

wants to merge 1 commit into from

Conversation

bbqsrc
Copy link
Contributor

@bbqsrc bbqsrc commented Sep 16, 2016

  • Add missing "use strict" (now works on node v4)
  • Fixes methods would appear nameless in stacktraces
  • Inverts approach for unbound methods
  • Result is a named type due to using class
  • Slightly less verbose line noise

All tests pass.

- Add missing "use strict" (now works on node v4)
- Fixes methods would appear nameless in stacktraces
- Inverts approach for unbound methods
- Result is a named type due to using class
- Slightly less verbose line noise
@bbqsrc bbqsrc changed the title Restyle with ES6 Restyle with ES5 Sep 16, 2016
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.

I can't merge as is anyways, due to merge conflicts.

}

function Result(is_ok, value) {
this.is_ok = is_ok
Copy link
Owner

Choose a reason for hiding this comment

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

Re-add the missing semicolons.

var args = Array.prototype.slice.call(arguments, 1);
return method.apply(context, args);
};
Fail: Fail
Copy link
Owner

Choose a reason for hiding this comment

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

module.exports = { Ok, Fail };

.forEach(function (key) {
module.exports[key] = function() {
const result = arguments[0]
Copy link
Owner

Choose a reason for hiding this comment

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

Semicolons.

@bbqsrc bbqsrc closed this Jun 26, 2021
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