added missing length
removed Error (duplicated from js.Error)