-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix revisionGuard when handling duplicate events at the same time
- Loading branch information
Showing
8 changed files
with
234 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict'; | ||
|
||
// Grab the util module that's bundled with Node | ||
var util = require('util'); | ||
|
||
// Create a new custom Error constructor | ||
function AlreadyDenormalizingError(msg) { | ||
// Pass the constructor to V8's | ||
// captureStackTrace to clean up the output | ||
Error.captureStackTrace(this, AlreadyDenormalizingError); | ||
|
||
// If defined, store a custom error message | ||
if (msg) { | ||
this.message = msg; | ||
} | ||
} | ||
|
||
// Extend our custom Error from Error | ||
util.inherits(AlreadyDenormalizingError, Error); | ||
|
||
// Give our custom error a name property. Helpful for logging the error later. | ||
AlreadyDenormalizingError.prototype.name = AlreadyDenormalizingError.name; | ||
|
||
module.exports = AlreadyDenormalizingError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.