Code coverage report for lib\AsyncDependenciesBlock.js

Statements: 86.67% (13 / 15)      Branches: 100% (2 / 2)      Functions: 66.67% (2 / 3)      Lines: 86.67% (13 / 15)      Ignored: none     

All files » lib\ » AsyncDependenciesBlock.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26        1   1 3691 3691 3691 3691 3691   1   1   1 920 920     1      
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
var DependenciesBlock = require("./DependenciesBlock");
 
function AsyncDependenciesBlock(name, module, loc) {
	DependenciesBlock.call(this);
	this.chunkName = name;
	this.chunk = null;
	this.module = module;
	this.loc = loc;
}
module.exports = AsyncDependenciesBlock;
 
AsyncDependenciesBlock.prototype = Object.create(DependenciesBlock.prototype);
 
AsyncDependenciesBlock.prototype.updateHash = function updateHash(hash) {
	hash.update(this.chunkName || "");
	DependenciesBlock.prototype.updateHash.call(this, hash);
};
 
AsyncDependenciesBlock.prototype.disconnect = function() {
	this.chunk = null;
	DependenciesBlock.prototype.disconnect.call(this);
};