delete writable for accessor property
This commit is contained in:
parent
baf39f3c5f
commit
346b2af446
@ -277,7 +277,7 @@ Block.prototype._getHash = function() {
|
|||||||
|
|
||||||
var idProperty = {
|
var idProperty = {
|
||||||
configurable: false,
|
configurable: false,
|
||||||
writeable: false,
|
enumerable: true,
|
||||||
/**
|
/**
|
||||||
* @returns {string} - The big endian hash buffer of the header
|
* @returns {string} - The big endian hash buffer of the header
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -233,7 +233,6 @@ BlockHeader.prototype._getHash = function hash() {
|
|||||||
|
|
||||||
var idProperty = {
|
var idProperty = {
|
||||||
configurable: false,
|
configurable: false,
|
||||||
writeable: false,
|
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
/**
|
/**
|
||||||
* @returns {string} - The big endian hash buffer of the header
|
* @returns {string} - The big endian hash buffer of the header
|
||||||
|
|||||||
@ -27,7 +27,6 @@ Input.DEFAULT_SEQNUMBER = DEFAULT_SEQNUMBER;
|
|||||||
|
|
||||||
Object.defineProperty(Input.prototype, 'script', {
|
Object.defineProperty(Input.prototype, 'script', {
|
||||||
configurable: false,
|
configurable: false,
|
||||||
writeable: false,
|
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
get: function() {
|
get: function() {
|
||||||
if (this.isNull()) {
|
if (this.isNull()) {
|
||||||
|
|||||||
@ -25,7 +25,6 @@ function Output(params) {
|
|||||||
|
|
||||||
Object.defineProperty(Output.prototype, 'script', {
|
Object.defineProperty(Output.prototype, 'script', {
|
||||||
configurable: false,
|
configurable: false,
|
||||||
writeable: false,
|
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
get: function() {
|
get: function() {
|
||||||
if (!this._script) {
|
if (!this._script) {
|
||||||
@ -37,7 +36,6 @@ Object.defineProperty(Output.prototype, 'script', {
|
|||||||
|
|
||||||
Object.defineProperty(Output.prototype, 'satoshis', {
|
Object.defineProperty(Output.prototype, 'satoshis', {
|
||||||
configurable: false,
|
configurable: false,
|
||||||
writeable: true,
|
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
get: function() {
|
get: function() {
|
||||||
return this._satoshis;
|
return this._satoshis;
|
||||||
|
|||||||
@ -99,7 +99,6 @@ Transaction.shallowCopy = function(transaction) {
|
|||||||
|
|
||||||
var hashProperty = {
|
var hashProperty = {
|
||||||
configurable: false,
|
configurable: false,
|
||||||
writeable: false,
|
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
get: function() {
|
get: function() {
|
||||||
return new BufferReader(this._getHash()).readReverse().toString('hex');
|
return new BufferReader(this._getHash()).readReverse().toString('hex');
|
||||||
@ -110,7 +109,6 @@ Object.defineProperty(Transaction.prototype, 'id', hashProperty);
|
|||||||
|
|
||||||
var ioProperty = {
|
var ioProperty = {
|
||||||
configurable: false,
|
configurable: false,
|
||||||
writeable: false,
|
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
get: function() {
|
get: function() {
|
||||||
return this._getInputAmount();
|
return this._getInputAmount();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user