Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Nov 23, 2024
1 parent da1aaae commit 18218bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ transpile = (code, options = {}) ->
minified: options.minify
comments: not options.minify
sourceType: options.sourceType
{ code } = babel.transformSync code, babelOptions unless presets.length is 0
{ code } = await babel.transformAsync code, babelOptions unless presets.length is 0
code

testBuiltCode = (watch = no) ->
Expand Down Expand Up @@ -489,13 +489,13 @@ task 'bench', 'quick benchmark of compilation time', ->
runTests = (CoffeeScript) ->
CoffeeScript.register() unless global.testingBrowser

# These are attached to `global` so that they’re accessible from within
# `test/async.coffee`, which has an async-capable version of
# `global.test`.
global.currentFile = null
global.passedTests = 0
global.failures = []

# These are attached to `global` so that they’re accessible from within
# `test/async.coffee`, which has an async-capable version of
# `global.test`.
global[name] = func for name, func of require 'assert'

# Convenience aliases.
Expand Down

0 comments on commit 18218bc

Please sign in to comment.