1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 cr.define('cr', function() {
6 function ErrorStore() {
8 window.addEventListener('error', function(e) {
13 cr.addSingletonGetter(ErrorStore);
15 ErrorStore.prototype = {
19 return this.store_.length;
24 ErrorStore: ErrorStore,
28 cr.ErrorStore.getInstance();