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

Factor out character decoder from Pipe class. #6

Merged
merged 1 commit into from
Jun 20, 2012
Merged

Conversation

danfuzz
Copy link
Contributor

@danfuzz danfuzz commented Jun 20, 2012

This will make it reusable in some upcoming additions.

This will make it reusable in some upcoming additions.
@danfuzz
Copy link
Contributor Author

danfuzz commented Jun 20, 2012

/cc @mikefleming
R=mike

*/
function isValid(encodingName) {
switch (encodingName) {
case undefined:

Choose a reason for hiding this comment

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

oh?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This works and I believe is correct per-spec.

@mikefleming
Copy link

LGTM

I think I'll get in the habit of using Object.freeze after my class definitions too.

@danfuzz
Copy link
Contributor Author

danfuzz commented Jun 20, 2012

Thanks!

And re: freeze(), yeah, it seems like a pretty sane thing to do to me.

danfuzz added a commit that referenced this pull request Jun 20, 2012
Factor out character decoder from Pipe class.
@danfuzz danfuzz merged commit 82e7bc7 into master Jun 20, 2012
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.

None yet

3 participants