mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
fixin up narwhal factory and adding more implicit blocks to the lexer
This commit is contained in:
@@ -6,13 +6,13 @@ factories: {}
|
||||
loader: {
|
||||
|
||||
# Reload the coffee-script environment from source.
|
||||
reload: topId, path =>
|
||||
reload: topId =>
|
||||
coffeescript ||= require('coffee-script')
|
||||
factories[topId]: coffeescript.makeNarwhalFactory(path)
|
||||
factories[topId]: => coffeescript
|
||||
|
||||
# Ensure that the coffee-script environment is loaded.
|
||||
load: topId, path =>
|
||||
factories[topId] ||= this.reload(topId, path)
|
||||
load: topId =>
|
||||
factories[topId] ||= this.reload(topId)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user