{"push_id":3088880928,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"2f82b75862242fb1ccd400cb4b2e53bbfdabfcdf","before":"294bb4754ec566d4fb10fd80fa8056be3d715bd7","commits":[{"sha":"2f82b75862242fb1ccd400cb4b2e53bbfdabfcdf","author":{"name":"Adrian","email":"060a1ede0e45c07a12dec1315dead6e7f1462a11@gmail.com"},"message":"implement coffeescript.registerCompiled method (#5130)\n\n* implement coffeescript._addSoucrse method\r\n\r\nThis method enables an external module to implement caching of\r\ncompilation results. When the compiled js source is loaded from cache,\r\nthe original coffee code should be added with this method in order to\r\nenable the Error.prepareStackTrace below to correctly adjust the stack\r\ntrace for the corresponding file (the source map will be generated on\r\ndemand).\r\n\r\n* replace _addSource with registerCompiled\r\n\r\n* extract the logic from _compileFile into _compileRawFileContent\r\n\r\n_compileFile takes care of logging the file and calls _compileRawFileContent\r\n\r\nthis way an external caching implementation which computes cache key\r\nbased on raw content of the sources file, can reuse the logic of\r\n_compileFile and avoid having calling `fs.readFileSync` for the file\r\nmore twice in case of cache miss\r\n\r\n* remove 'output' argument from registerCompiled","distinct":true,"url":"https://api.github.com/repos/jashkenas/coffeescript/commits/2f82b75862242fb1ccd400cb4b2e53bbfdabfcdf"}]}
{"actor":{"display_login":"GeoffreyBooth"}}