Skip to content

Commit

Permalink
[fix] Fix crashes on node v0.9.3
Browse files Browse the repository at this point in the history
Fixes #230.
  • Loading branch information
mmalecki committed Sep 26, 2012
1 parent 808a773 commit f412e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vows/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ this.Suite.prototype = new(function () {
// synchronously.
if (topic &&
ctx.name !== 'on' &&
!topic._vowsEmitedEvents.hasOwnProperty(ctx.event)) {
(!topic._vowsEmitedEvents || !topic._vowsEmitedEvents.hasOwnProperty(ctx.event))) {
topic.on(ctx.event, function (ctx) {
return function (val) {
return run(new(Context)(vow, ctx, env), lastTopic);
Expand Down

0 comments on commit f412e4a

Please sign in to comment.