Skip to content

Fix v7.1.0 regression#19

Closed
doochik wants to merge 1 commit intoRaynos:masterfrom
doochik:7.1.0-regression
Closed

Fix v7.1.0 regression#19
doochik wants to merge 1 commit intoRaynos:masterfrom
doochik:7.1.0-regression

Conversation

@doochik
Copy link
Copy Markdown

@doochik doochik commented Sep 15, 2019

This code works with 7.0.x and broken in 7.1.0

var TypedError = require('../typed.js');
TypedError({
   type: 'myError',
   message: 'myError',
   length: null,
});

Reason: v7.0.x uses xtend package which not use 'use strict'.

I've found this because this bug affects jaeger-client-node which depends on bufrw.
jaeger-client-node -> tchannel, thriftrw -> bufrw -> error
https://github.com/uber/bufrw/blob/master/errors.js#L121

This code works with 7.0.x and broken in 7.1.0
TypedError({
   type: 'myError',
   message: 'myError',
   length: null,
});

Reason: v7.0.x uses xtend package which not use 'use strict'.
@Raynos
Copy link
Copy Markdown
Owner

Raynos commented Sep 15, 2019

I fixed the issue using a different approach and published v7.2.0

@doochik
Copy link
Copy Markdown
Author

doochik commented Sep 15, 2019

thanks!

@doochik doochik closed this Sep 15, 2019
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