Skip to content

Conversation

@kyledrake
Copy link
Contributor

Moves testing coverage to 100%, except for this line: https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/src/address.js#L8

Can someone explain what this line is used for? I think it has something to do with inheritance, but I just need a use case for it. If it doesn't make sense I will remove it.

@weilu
Copy link
Contributor

weilu commented Mar 7, 2014

In case the constructor is invoked without new:

var Foo = function(){ console.log(this) } Foo() // Window new Foo() // Foo {}
weilu added a commit that referenced this pull request Mar 7, 2014
@weilu weilu merged commit ef1a401 into bitcoinjs:master Mar 7, 2014
@weilu
Copy link
Contributor

weilu commented Mar 7, 2014

It occurred to me that there might be people using the methods that are removed in this PR. @xnova seems to be an active user of the library. Please let us know if you are aware of any use cases of any functions removed in this PR, #53 and #52

louisinger added a commit to louisinger/liquidjs-lib that referenced this pull request Jun 9, 2022
* wip split SHA256 functions * fix and test witnessHashV1 * yarn test * strict equality * rename hashOutpoints -> hashPrevouts * yarn test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants