Use interpolated string when evaluating

This commit is contained in:
Kevin Sawicki
2013-01-27 20:12:36 -08:00
parent 90054d8553
commit a89e1fae11

View File

@@ -51,7 +51,7 @@ define = (cb) ->
exts =
js: (file, code) ->
code or= __read file
eval("define(function(require, exports, module) { 'use strict';" + code + "})\n//@ sourceURL=" + file)
eval("define(function(require, exports, module) { 'use strict';#{code}})\n//@ sourceURL=#{file}")
__defines.pop()?.call()
coffee: (file, retry=true) ->
cacheFilePath = getCacheFilePath(file)