Created
May 20, 2013 11:38
-
-
Save LucienLee/5611753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = "exports = module.exports = { | |
room1: 'public', | |
room2: 'public', | |
room3: 'public' | |
};" | |
var f = new Function('var module={},exports=null;\n'+data+'\nif(typeof module.exports !== "undefined") {\nreturn module.exports;\n}\nif(null != exports) {\n return exports;\n}'); | |
var exports = f(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment