Skip to content

Instantly share code, notes, and snippets.

@fillano
Created March 30, 2014 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fillano/9866678 to your computer and use it in GitHub Desktop.
Save fillano/9866678 to your computer and use it in GitHub Desktop.
function * gen(){}
var g = gen();
g.throw('got an error.');
//拋出一個例外,錯誤訊息是 'got an error.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment