lepu-test-platform-web/node_modules/fibers/test/process-title.js

9 lines
206 B
JavaScript

// gh-10
var Fiber = require('fibers');
var title = process.title;
Fiber(function() {
process.title = 'pass';
}).run();
console.log(process.title === 'pass' || process.title === title ? 'pass' : 'fail');