10

我在控制台中不断看到这个非破坏性异常:

Uncaught ReferenceError: stopme is not defined

(匿名函数)

在我的任何文件中都没有调用 stopme 变量,在控制台中进行了完整搜索。我拥有的是多个:

setInterval(function() {
  updateMetrics();
}, 1000);

在我的代码中调用,每当其中一个失败时,它都会显示在控制台中。我也不知道这是否是默认行为,但我也注意到每次我使用以下方法设置新间隔时:

var intervalId = setInterval(function() {}, 1000);

该 intervalId 是非连续的,如:console.log(intervalId)结果是1, 4, 9, 14. 我从控制台手动调用上面的代码,看看为什么我的 intervalIds 是自动递增的。

这是完整的堆栈跟踪:

Uncaught ReferenceError: stopme is not defined
(anonymous function)

附加库:

bootstrap.js
d3.v3.js
ember.js
handlebars.js
jquery-1.9.1.js
jquery.jsPlumb.js
jquery.timeago.js
require.js
string.min.js

错误仅在 Chrome 中显示,在 Firefox 中不显示。我的 Chrome 版本是:版本 29.0.1547.57

4

3 回答 3

27

I tracked this to my "Webpage Screenshot Capture" extension. Sucks because it's a great extension for capturing full height web pages. Can anyone recommend another?

于 2013-08-27T05:55:49.510 回答
2

+1 to "Webpage Screenshot Capture" chrome extension. After disabling it the bug is gone.

The bug has been appeared when navigating through pages in backbonejs application.

于 2013-08-27T12:05:47.257 回答
0

+1. I also met this issue. And finally I found only one of my end user will occur this error. Searched it for google, that said extension's error will trigger window.onerror.

于 2013-08-28T08:29:04.180 回答