Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function newItem() {
var item = Tuple.ingest(new Item(this._mark));
// For the root node's item
if (this._def.width) Tuple.set(item, 'width', this._def.width);
if (this._def.height) Tuple.set(item, 'height', this._def.height);
return item;
}