rem: ﻿(function(){ typeof cor === 'undefined' && (cor = {}); 
add: (function(){ typeof cor === 'undefined' && (cor = {}); 
context: ﻿(function(){ typeof cor === 'undefined' && (cor = {});varloader = cor.loader;path   = cor.path;//Custom plugin for .js filesloader.addPlugin({    ext       : '.js',    rComments : /\/\/([\s\S]*?)\n|\/\*([\s\S]*?)\*\//g,    rRequire  : /(?:^|\s)require\s*\(\s*['"]([\w-\.\/]*?)['"]/g,    rootPath  : null,    getRootPath: function() {        if (cor.isBrowser) {            if (!this.rootPath) {                this.rootPath = window.location.protocol + '//' + window.location.host;            }            return this.rootPath;        }        else {            return '';        }    },    findRequired: function(str) {        var        matches = [];        str.        replace(this.rComments, '').        replace(this.rRequire, function collectRequired(s, m){            matches.push(m);        })        return matches;    },    toJs: function(txt, from) {        return {            src  : txt,            suffix: '//# sourceURL=' + this.getRootPath() + from        };    }});varCompiler = cor.Compiler;//Custom plugin for .cor filesloader.addPlugin({    ext       : '.cor',    rComments : /\/\/([\s\S]*?)\n|---([\s\S]*?)---/g,    rRequire  : /(?:^|\s)use\s*['"]([\w-\.\/]*?)['"]/g,    findRequired: function(str, from) {        var parsed,        matches = [],        me      = this;        str.        replace(this.rComments, '').        replace(this.rRequire, function collectRequired(s, m) {            var srcPath, mappedPath;            if (path.ext(m) === '.cor') {                throw loader.error("Can not require directly require '.cor' modules", from);            }            srcPath = cor.yy.generateRoute(m);            matches.push(srcPath);        })        return matches;    },    toJs: function(src, from) {        var        ast, js, smap,        suffix = '',        comp   = new Compiler(src, from, cor.isBrowser, 1);        ast    = comp.parse();        js     = comp.compile(ast);        smap   = comp.sourceMap;        if (smap            && typeof btoa !== 'undefined'            && typeof unescape !== 'undefined'            && typeof encodeURIComponent !== 'undefined') {            smap = smap.generate({                source       : from.split('/').pop(),                sourceContent: src            });            //console.log(smap);            //console.log(new Function(js));            suffix = '//# sourceMappingURL=data:application/json;base64,' + (btoa(unescape(encodeURIComponent(smap))));            suffix += '\n//# sourceURL=' + from;        }        //console.log(src);        return {            src   : js,            suffix: suffix        };    }});}).call(this);
meta: 1103	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1103/941e4ac1644ee0aaa005566b5d6b27696673f84a/cor.js/buggy/dist/cor.js