memblock: fix isMemBlock.
This commit is contained in:
parent
cd795cf96f
commit
0993bbacbf
@ -213,7 +213,10 @@ MemBlock.prototype.toHeaders = function toHeaders() {
|
||||
*/
|
||||
|
||||
MemBlock.isMemBlock = function isMemBlock(obj) {
|
||||
return obj && obj.memory && typeof obj.toBlock === 'function';
|
||||
return obj
|
||||
&& typeof obj.toBlock === 'function'
|
||||
&& typeof obj.isMemory === 'function'
|
||||
&& obj.isMemory();
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user