Mercurial > jsm-in-web
changeset 5:f08437f96401
Error is now thrown if an exporte symbol is undefined.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 08 Apr 2009 18:09:16 -0700 |
parents | 760cb3aa1a01 |
children | cb390cc6efa2 |
files | jsm-in-web.js |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/jsm-in-web.js Wed Apr 08 17:00:40 2009 -0700 +++ b/jsm-in-web.js Wed Apr 08 18:09:16 2009 -0700 @@ -65,6 +65,8 @@ function(symbol) { //console.log("Exporting symbol " + symbol); obj[symbol] = module.window[symbol]; + if (typeof(obj[symbol]) == "undefined") + throw new Error("Symbol is undefined: " + symbol); }); };