Commit 0036bb01 authored by David Votrubec's avatar David Votrubec

VsCode configured to use grunt tasks. Added directory es6 with first sample

parent 8a6cda35
\ No newline at end of file
\ No newline at end of file
function *tryCatch() {
try {
var x = yield 3;
console.log( "x: " + x ); // may never get here!
catch (err) {
console.log( "Error was thrown: " + err );
var it = tryCatch();
var res =; // { value:3, done:false }
// instead of resuming normally with another `next(..)` call,
// let's throw a wrench (an error) into the gears:
it.throw( "Oops!" ); // Error was caught: Oops!
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment