19d897862e
This extension provides a fiber/coroutine implementation for nodejs. It also ships with a futures implementation that wraps existing nodejs async functions, allowing synchronous style code that handles exceptions properly and doesn't block the nodejs event loop. OK sthen@
22 lines
833 B
Plaintext
22 lines
833 B
Plaintext
$OpenBSD: patch-fibers_js,v 1.1.1.1 2012/04/03 18:46:03 jeremy Exp $
|
|
|
|
Don't check mtimes against process, as it appears to break things
|
|
and should not be a problem with ports.
|
|
|
|
--- fibers.js.orig Wed Feb 1 13:54:47 2012
|
|
+++ fibers.js Wed Feb 1 13:55:09 2012
|
|
@@ -1,13 +1,2 @@
|
|
-var fs = require('fs'), path = require('path');
|
|
-
|
|
-if (fs.statSync(process.execPath).mtime >
|
|
- fs.statSync(require.resolve('./src/fibers')).mtime) {
|
|
- throw new Error(
|
|
- '`node` has a newer mtime than `fiber`; it is possible your build is out of date. This ' +
|
|
- 'could happen if you upgrade node. Try `npm rebuild fibers` to rebuild. If that doesn\'t ' +
|
|
- 'work you could consider running `touch ' + __dirname + 'src/fibers` and maybe there won\'t ' +
|
|
- 'be a problem.');
|
|
-}
|
|
-
|
|
// Injects `Fiber` and `yield` in to global
|
|
require('./src/fibers');
|