Lines Matching refs:cycle
8 function cycle(err) { function
12 assert.strictEqual(cycle(0), 0);
13 assert.strictEqual(cycle(-1), -1);
14 assert.strictEqual(cycle(1.4), 1.4);
15 assert.strictEqual(cycle(null), null);
16 assert.strictEqual(cycle(undefined), undefined);
17 assert.strictEqual(cycle('foo'), 'foo');
28 err = cycle(err);
32 assert.strictEqual(cycle(new RangeError('foo')).name, 'RangeError');
33 assert.strictEqual(cycle(new TypeError('foo')).name, 'TypeError');
34 assert.strictEqual(cycle(new ReferenceError('foo')).name, 'ReferenceError');
35 assert.strictEqual(cycle(new URIError('foo')).name, 'URIError');
36 assert.strictEqual(cycle(new EvalError('foo')).name, 'EvalError');
37 assert.strictEqual(cycle(new SyntaxError('foo')).name, 'SyntaxError');
41 assert.strictEqual(cycle(new SubError('foo')).name, 'Error');
43 assert.deepStrictEqual(cycle({ message: 'foo' }), { message: 'foo' });
44 assert.strictEqual(cycle(Function), '[Function: Function]');