Open SomeKittens opened 8 years ago
Input:
a => { return new Promise((resolve, reject) => { setTimeout(() => resolve(a * 2), 500); }); }
Expected output:
['a']
Output:
[ '(resolve', 'reject' ]
Other things I tried that broke:
a => { setTimeout(() => resolve(a * 2), 500); }
Output: [ '(' ]
[ '(' ]
a => { return new Promise(resolve => { setTimeout(() => resolve(a * 2), 500); }); }
Output: [ 'resolve', 'setTimeout((' ]
[ 'resolve', 'setTimeout((' ]
a => { return new Promise(resolve => { }); }
Output: [ 'resolve', '}' ]
[ 'resolve', '}' ]
$ node -v v5.9.1
Should be fixed by PR #7
Input:
Expected output:
['a']
Output:
[ '(resolve', 'reject' ]
Other things I tried that broke:
Output:
[ '(' ]
Output:
[ 'resolve', 'setTimeout((' ]
Output:
[ 'resolve', '}' ]