lepu-test-platform-web/node_modules/fibers/test/illegal-yield.js

8 lines
100 B
JavaScript

// gh-3
var Fiber = require('fibers');
try {
Fiber.yield();
} catch(err) {
console.log('pass');
}