Skip to content

Commit 85d9747

Browse files
committed
Merge pull request #13 from carter-thaxton/master
Fix setTimeout and setInterval names in stacktraces
2 parents 4648d8d + 74d9a87 commit 85d9747

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/longjohn.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/longjohn.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ _setInterval = global.setInterval
190190

191191
global.setTimeout = (callback) ->
192192
args = Array::slice.call(arguments)
193-
args[0] = wrap_callback(callback, 'process.nextTick')
193+
args[0] = wrap_callback(callback, 'global.setTimeout')
194194
_setTimeout.apply(this, args)
195195

196196
global.setInterval = (callback) ->
197197
args = Array::slice.call(arguments)
198-
args[0] = wrap_callback(callback, 'process.nextTick')
198+
args[0] = wrap_callback(callback, 'global.setInterval')
199199
_setInterval.apply(this, args)
200200

201201
Error.prepareStackTrace = prepareStackTrace

0 commit comments

Comments
 (0)