1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

build & docs for 1.9.2

This commit is contained in:
Andreas Lubbe 2015-04-15 17:26:30 +02:00
parent cc4c3b2606
commit edbb9a77e7
68 changed files with 136 additions and 98 deletions

View file

@ -261,8 +261,9 @@ This happens on page load.</p>
<span class="hljs-keyword">for</span> script, i <span class="hljs-keyword">in</span> coffees <span class="hljs-keyword">for</span> script, i <span class="hljs-keyword">in</span> coffees
<span class="hljs-keyword">do</span> <span class="hljs-function"><span class="hljs-params">(script, i)</span> -&gt;</span> <span class="hljs-keyword">do</span> <span class="hljs-function"><span class="hljs-params">(script, i)</span> -&gt;</span>
options = <span class="hljs-attribute">literate</span>: script.type <span class="hljs-keyword">is</span> coffeetypes[<span class="hljs-number">1</span>] options = <span class="hljs-attribute">literate</span>: script.type <span class="hljs-keyword">is</span> coffeetypes[<span class="hljs-number">1</span>]
<span class="hljs-keyword">if</span> script.src source = script.src <span class="hljs-keyword">or</span> script.getAttribute(<span class="hljs-string">'data-src'</span>)
CoffeeScript.load script.src, <span class="hljs-keyword">if</span> source
CoffeeScript.load source,
<span class="hljs-function"><span class="hljs-params">(param)</span> -&gt;</span> <span class="hljs-function"><span class="hljs-params">(param)</span> -&gt;</span>
coffees[i] = param coffees[i] = param
execute() execute()

View file

@ -144,7 +144,7 @@ SourceMap = <span class="hljs-built_in">require</span> <span class="hljs-str
</div> </div>
<div class="content"><div class='highlight'><pre><span class="hljs-built_in">exports</span>.VERSION = <span class="hljs-string">'1.9.1'</span> <div class="content"><div class='highlight'><pre><span class="hljs-built_in">exports</span>.VERSION = <span class="hljs-string">'1.9.2'</span>
<span class="hljs-built_in">exports</span>.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span class="hljs-string">'.litcoffee'</span>, <span class="hljs-string">'.coffee.md'</span>]</pre></div></div> <span class="hljs-built_in">exports</span>.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span class="hljs-string">'.litcoffee'</span>, <span class="hljs-string">'.coffee.md'</span>]</pre></div></div>

View file

@ -211,6 +211,7 @@ useWinPathSep = path.sep <span class="hljs-keyword">is</span> <span class="hljs
[ <span class="hljs-string">'--no-header'</span>, <span class="hljs-string">'suppress the "Generated by" header'</span>] [ <span class="hljs-string">'--no-header'</span>, <span class="hljs-string">'suppress the "Generated by" header'</span>]
[<span class="hljs-string">'-o'</span>, <span class="hljs-string">'--output [DIR]'</span>, <span class="hljs-string">'set the output directory for compiled JavaScript'</span>] [<span class="hljs-string">'-o'</span>, <span class="hljs-string">'--output [DIR]'</span>, <span class="hljs-string">'set the output directory for compiled JavaScript'</span>]
[<span class="hljs-string">'-p'</span>, <span class="hljs-string">'--print'</span>, <span class="hljs-string">'print out the compiled JavaScript'</span>] [<span class="hljs-string">'-p'</span>, <span class="hljs-string">'--print'</span>, <span class="hljs-string">'print out the compiled JavaScript'</span>]
[<span class="hljs-string">'-r'</span>, <span class="hljs-string">'--require [MODULE*]'</span>, <span class="hljs-string">'require the given module before eval or REPL'</span>]
[<span class="hljs-string">'-s'</span>, <span class="hljs-string">'--stdio'</span>, <span class="hljs-string">'listen for and compile scripts over stdio'</span>] [<span class="hljs-string">'-s'</span>, <span class="hljs-string">'--stdio'</span>, <span class="hljs-string">'listen for and compile scripts over stdio'</span>]
[<span class="hljs-string">'-l'</span>, <span class="hljs-string">'--literate'</span>, <span class="hljs-string">'treat stdio as literate style coffee-script'</span>] [<span class="hljs-string">'-l'</span>, <span class="hljs-string">'--literate'</span>, <span class="hljs-string">'treat stdio as literate style coffee-script'</span>]
[<span class="hljs-string">'-t'</span>, <span class="hljs-string">'--tokens'</span>, <span class="hljs-string">'print out the tokens that the lexer/rewriter produce'</span>] [<span class="hljs-string">'-t'</span>, <span class="hljs-string">'--tokens'</span>, <span class="hljs-string">'print out the tokens that the lexer/rewriter produce'</span>]
@ -236,8 +237,7 @@ sources = []
sourceCode = [] sourceCode = []
notSources = {} notSources = {}
watchedDirs = {} watchedDirs = {}
optionParser = <span class="hljs-literal">null</span> optionParser = <span class="hljs-literal">null</span></pre></div></div>
jsToSources = {}</pre></div></div>
</li> </li>
@ -273,6 +273,8 @@ Many flags cause us to divert before compiling anything. Flags passed after
</div> </div>
<div class="content"><div class='highlight'><pre> replCliOpts = <span class="hljs-attribute">useGlobal</span>: <span class="hljs-literal">yes</span> <div class="content"><div class='highlight'><pre> replCliOpts = <span class="hljs-attribute">useGlobal</span>: <span class="hljs-literal">yes</span>
opts.prelude = makePrelude opts.<span class="hljs-built_in">require</span> <span class="hljs-keyword">if</span> opts.<span class="hljs-built_in">require</span>
replCliOpts.prelude = opts.prelude
<span class="hljs-keyword">return</span> forkNode() <span class="hljs-keyword">if</span> opts.nodejs <span class="hljs-keyword">return</span> forkNode() <span class="hljs-keyword">if</span> opts.nodejs
<span class="hljs-keyword">return</span> usage() <span class="hljs-keyword">if</span> opts.help <span class="hljs-keyword">return</span> usage() <span class="hljs-keyword">if</span> opts.help
<span class="hljs-keyword">return</span> version() <span class="hljs-keyword">if</span> opts.version <span class="hljs-keyword">return</span> version() <span class="hljs-keyword">if</span> opts.version
@ -303,7 +305,14 @@ Many flags cause us to divert before compiling anything. Flags passed after
'''</span> '''</span>
<span class="hljs-keyword">for</span> source <span class="hljs-keyword">in</span> opts.arguments <span class="hljs-keyword">for</span> source <span class="hljs-keyword">in</span> opts.arguments
source = path.resolve source source = path.resolve source
compilePath source, <span class="hljs-literal">yes</span>, source</pre></div></div> compilePath source, <span class="hljs-literal">yes</span>, source
<span class="hljs-function"><span class="hljs-title">makePrelude</span> = <span class="hljs-params">(requires)</span> -&gt;</span>
requires.map <span class="hljs-function"><span class="hljs-params">(<span class="hljs-built_in">module</span>)</span> -&gt;</span>
[_, name, <span class="hljs-built_in">module</span>] = match <span class="hljs-keyword">if</span> match = <span class="hljs-built_in">module</span>.match(<span class="hljs-regexp">/^(.*)=(.*)$/</span>)
name ||= helpers.baseFileName <span class="hljs-built_in">module</span>, <span class="hljs-literal">yes</span>, useWinPathSep
<span class="hljs-string">"<span class="hljs-subst">#{name}</span> = require('<span class="hljs-subst">#{<span class="hljs-built_in">module</span>}</span>')"</span>
.join <span class="hljs-string">';'</span></pre></div></div>
</li> </li>
@ -395,6 +404,7 @@ requested options. If evaluating the script directly sets <code>__filename</code
printLine CoffeeScript.nodes(t.input, t.options).toString().trim() printLine CoffeeScript.nodes(t.input, t.options).toString().trim()
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.run <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.run
CoffeeScript.register() CoffeeScript.register()
CoffeeScript.eval opts.prelude, t.options <span class="hljs-keyword">if</span> opts.prelude
CoffeeScript.run t.input, t.options CoffeeScript.run t.input, t.options
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.join <span class="hljs-keyword">and</span> t.file <span class="hljs-keyword">isnt</span> o.join <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.join <span class="hljs-keyword">and</span> t.file <span class="hljs-keyword">isnt</span> o.join
t.input = helpers.invertLiterate t.input <span class="hljs-keyword">if</span> helpers.isLiterate file t.input = helpers.invertLiterate t.input <span class="hljs-keyword">if</span> helpers.isLiterate file
@ -676,12 +686,6 @@ same directory as the <code>.js</code> file.</p>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">writeJs</span> = <span class="hljs-params">(base, sourcePath, js, jsPath, generatedSourceMap = <span class="hljs-literal">null</span>)</span> -&gt;</span> <div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">writeJs</span> = <span class="hljs-params">(base, sourcePath, js, jsPath, generatedSourceMap = <span class="hljs-literal">null</span>)</span> -&gt;</span>
sourceMapPath = outputPath sourcePath, base, <span class="hljs-string">".js.map"</span> sourceMapPath = outputPath sourcePath, base, <span class="hljs-string">".js.map"</span>
jsDir = path.dirname jsPath jsDir = path.dirname jsPath
<span class="hljs-keyword">if</span> jsPath <span class="hljs-keyword">of</span> jsToSources
printLine <span class="hljs-string">"Error: The two following source files have the same output file:"</span>
printLine <span class="hljs-string">" "</span> + jsToSources[jsPath]
printLine <span class="hljs-string">" "</span> + sourcePath
process.exit <span class="hljs-number">1</span>
jsToSources[jsPath] = sourcePath
<span class="hljs-function"><span class="hljs-title">compile</span> = -&gt;</span> <span class="hljs-function"><span class="hljs-title">compile</span> = -&gt;</span>
<span class="hljs-keyword">if</span> opts.compile <span class="hljs-keyword">if</span> opts.compile
js = <span class="hljs-string">' '</span> <span class="hljs-keyword">if</span> js.length &lt;= <span class="hljs-number">0</span> js = <span class="hljs-string">' '</span> <span class="hljs-keyword">if</span> js.length &lt;= <span class="hljs-number">0</span>
@ -832,7 +836,7 @@ the <code>node</code> binary, preserving the other options.</p>
p = spawn process.execPath, nodeArgs.concat(args), p = spawn process.execPath, nodeArgs.concat(args),
<span class="hljs-attribute">cwd</span>: process.cwd() <span class="hljs-attribute">cwd</span>: process.cwd()
<span class="hljs-attribute">env</span>: process.env <span class="hljs-attribute">env</span>: process.env
<span class="hljs-attribute">customFds</span>: [<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>] <span class="hljs-attribute">stdio</span>: [<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>]
p.<span class="hljs-literal">on</span> <span class="hljs-string">'exit'</span>, <span class="hljs-function"><span class="hljs-params">(code)</span> -&gt;</span> process.exit code</pre></div></div> p.<span class="hljs-literal">on</span> <span class="hljs-string">'exit'</span>, <span class="hljs-function"><span class="hljs-params">(code)</span> -&gt;</span> process.exit code</pre></div></div>
</li> </li>

View file

@ -583,7 +583,7 @@ it already.</p>
</div> </div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> process? <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> process?
colorsEnabled = process.stdout.isTTY <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> process.env.NODE_DISABLE_COLORS colorsEnabled = process.stdout?.isTTY <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> process.env?.NODE_DISABLE_COLORS
<span class="hljs-keyword">if</span> <span class="hljs-property">@colorful</span> ? colorsEnabled <span class="hljs-keyword">if</span> <span class="hljs-property">@colorful</span> ? colorsEnabled
<span class="hljs-function"><span class="hljs-title">colorize</span> = <span class="hljs-params">(str)</span> -&gt;</span> <span class="hljs-string">"\x1B[1;31m<span class="hljs-subst">#{str}</span>\x1B[0m"</span> <span class="hljs-function"><span class="hljs-title">colorize</span> = <span class="hljs-params">(str)</span> -&gt;</span> <span class="hljs-string">"\x1B[1;31m<span class="hljs-subst">#{str}</span>\x1B[0m"</span>

View file

@ -484,7 +484,7 @@ interpolation.</p>
{tokens, <span class="hljs-attribute">index</span>: end} = <span class="hljs-property">@matchWithInterpolations</span> regex, quote {tokens, <span class="hljs-attribute">index</span>: end} = <span class="hljs-property">@matchWithInterpolations</span> regex, quote
$ = tokens.length - <span class="hljs-number">1</span> $ = tokens.length - <span class="hljs-number">1</span>
delimiter = quote[<span class="hljs-number">0</span>] delimiter = quote.charAt(<span class="hljs-number">0</span>)
<span class="hljs-keyword">if</span> heredoc</pre></div></div> <span class="hljs-keyword">if</span> heredoc</pre></div></div>
</li> </li>
@ -1766,7 +1766,7 @@ HEREDOC_INDENT = <span class="hljs-regexp">/\n+([^\n\S]*)(?=\S)/g</span></pr
| \\[^\n] <span class="hljs-comment"># anything but newlines escaped</span> | \\[^\n] <span class="hljs-comment"># anything but newlines escaped</span>
| \[ <span class="hljs-comment"># character class</span> | \[ <span class="hljs-comment"># character class</span>
(?: \\[^\n] | [^ \] \n \\ ] )* (?: \\[^\n] | [^ \] \n \\ ] )*
] \]
)*) (/)? )*) (/)?
///</span> ///</span>

View file

@ -328,7 +328,7 @@ object with their parent closure, to preserve the expected lexical scope.</p>
meth = <span class="hljs-string">'call'</span> meth = <span class="hljs-string">'call'</span>
func = <span class="hljs-keyword">new</span> Value func, [<span class="hljs-keyword">new</span> Access <span class="hljs-keyword">new</span> Literal meth] func = <span class="hljs-keyword">new</span> Value func, [<span class="hljs-keyword">new</span> Access <span class="hljs-keyword">new</span> Literal meth]
parts = (<span class="hljs-keyword">new</span> Call func, args).compileNode o parts = (<span class="hljs-keyword">new</span> Call func, args).compileNode o
<span class="hljs-keyword">if</span> func.isGenerator <span class="hljs-keyword">if</span> func.isGenerator <span class="hljs-keyword">or</span> func.base?.isGenerator
parts.unshift <span class="hljs-property">@makeCode</span> <span class="hljs-string">"(yield* "</span> parts.unshift <span class="hljs-property">@makeCode</span> <span class="hljs-string">"(yield* "</span>
parts.push <span class="hljs-property">@makeCode</span> <span class="hljs-string">")"</span> parts.push <span class="hljs-property">@makeCode</span> <span class="hljs-string">")"</span>
parts</pre></div></div> parts</pre></div></div>

View file

@ -243,11 +243,7 @@ parens. Unwrap all that.</p>
<span class="hljs-keyword">new</span> Assign (<span class="hljs-keyword">new</span> Value <span class="hljs-keyword">new</span> Literal <span class="hljs-string">'_'</span>), ast, <span class="hljs-string">'='</span> <span class="hljs-keyword">new</span> Assign (<span class="hljs-keyword">new</span> Value <span class="hljs-keyword">new</span> Literal <span class="hljs-string">'_'</span>), ast, <span class="hljs-string">'='</span>
] ]
js = ast.compile {<span class="hljs-attribute">bare</span>: <span class="hljs-literal">yes</span>, <span class="hljs-attribute">locals</span>: Object.keys(context), referencedVars} js = ast.compile {<span class="hljs-attribute">bare</span>: <span class="hljs-literal">yes</span>, <span class="hljs-attribute">locals</span>: Object.keys(context), referencedVars}
result = <span class="hljs-keyword">if</span> context <span class="hljs-keyword">is</span> <span class="hljs-built_in">global</span> cb <span class="hljs-literal">null</span>, runInContext js, context, filename
vm.runInThisContext js, filename
<span class="hljs-keyword">else</span>
vm.runInContext js, context, filename
cb <span class="hljs-literal">null</span>, result
<span class="hljs-keyword">catch</span> err</pre></div></div> <span class="hljs-keyword">catch</span> err</pre></div></div>
</li> </li>
@ -266,6 +262,12 @@ parens. Unwrap all that.</p>
<div class="content"><div class='highlight'><pre> updateSyntaxError err, input <div class="content"><div class='highlight'><pre> updateSyntaxError err, input
cb err cb err
<span class="hljs-function"><span class="hljs-title">runInContext</span> = <span class="hljs-params">(js, context, filename)</span> -&gt;</span>
<span class="hljs-keyword">if</span> context <span class="hljs-keyword">is</span> <span class="hljs-built_in">global</span>
vm.runInThisContext js, filename
<span class="hljs-keyword">else</span>
vm.runInContext js, context, filename
<span class="hljs-function"><span class="hljs-title">addMultilineHandler</span> = <span class="hljs-params">(repl)</span> -&gt;</span> <span class="hljs-function"><span class="hljs-title">addMultilineHandler</span> = <span class="hljs-params">(repl)</span> -&gt;</span>
{rli, inputStream, outputStream} = repl</pre></div></div> {rli, inputStream, outputStream} = repl</pre></div></div>
@ -576,6 +578,7 @@ parens. Unwrap all that.</p>
process.argv = [<span class="hljs-string">'coffee'</span>].concat process.argv[<span class="hljs-number">2.</span>.] process.argv = [<span class="hljs-string">'coffee'</span>].concat process.argv[<span class="hljs-number">2.</span>.]
opts = merge replDefaults, opts opts = merge replDefaults, opts
repl = nodeREPL.start opts repl = nodeREPL.start opts
runInContext opts.prelude, repl.context, <span class="hljs-string">'prelude'</span> <span class="hljs-keyword">if</span> opts.prelude
repl.<span class="hljs-literal">on</span> <span class="hljs-string">'exit'</span>,<span class="hljs-function"> -&gt;</span> repl.outputStream.write <span class="hljs-string">'\n'</span> repl.<span class="hljs-literal">on</span> <span class="hljs-string">'exit'</span>,<span class="hljs-function"> -&gt;</span> repl.outputStream.write <span class="hljs-string">'\n'</span>
addMultilineHandler repl addMultilineHandler repl
addHistory repl, opts.historyFile, opts.historyMaxInputSize <span class="hljs-keyword">if</span> opts.historyFile</pre></div></div> addHistory repl, opts.historyFile, opts.historyMaxInputSize <span class="hljs-keyword">if</span> opts.historyFile</pre></div></div>

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var volume, winner; var volume, winner;
if (ignition === true) { if (ignition === true) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var courses, dish, food, foods, i, j, k, l, len, len1, len2, ref; var courses, dish, food, foods, i, j, k, l, len, len1, len2, ref;
ref = ['toast', 'cheese', 'wine']; ref = ['toast', 'cheese', 'wine'];

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
/* /*
SkinnyMochaHalfCaffScript Compiler v1.0 SkinnyMochaHalfCaffScript Compiler v1.0

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var fs; var fs;
fs = require('fs'); fs = require('fs');

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
$('body').click(function(e) { $('body').click(function(e) {
return $('.box').fadeIn('fast').addClass('.active'); return $('.box').fadeIn('fast').addClass('.active');
}).css('background', 'white'); }).css('background', 'white');

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var Animal, Horse, Snake, sam, tom, var Animal, Horse, Snake, sam, tom,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty; hasProp = {}.hasOwnProperty;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var cholesterol, healthy; var cholesterol, healthy;
cholesterol = 127; cholesterol = 127;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var date, mood; var date, mood;
if (singing) { if (singing) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var Person, tim; var Person, tim;
Person = (function() { Person = (function() {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var fill; var fill;
fill = function(container, liquid) { fill = function(container, liquid) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var filename, fn, i, len; var filename, fn, i, len;
fn = function(filename) { fn = function(filename) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var hi; var hi;
hi = function() { hi = function() {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var footprints, solipsism, speed; var footprints, solipsism, speed;
if ((typeof mind !== "undefined" && mind !== null) && (typeof world === "undefined" || world === null)) { if ((typeof mind !== "undefined" && mind !== null) && (typeof world === "undefined" || world === null)) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var first, last, ref, text; var first, last, ref, text;
text = "Every literary critic believes he will outwit history and have the last word"; text = "Every literary critic believes he will outwit history and have the last word";

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var eldest, grade; var eldest, grade;
grade = function(student) { grade = function(student) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var one, six, three, two; var one, six, three, two;
six = (one = 1) + (two = 2) + (three = 3); six = (one = 1) + (two = 2) + (three = 3);

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var globals, name; var globals, name;
globals = ((function() { globals = ((function() {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var error; var error;
alert((function() { alert((function() {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var Account; var Account;
Account = function(customer, cart) { Account = function(customer, cart) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var cube, square; var cube, square;
square = function(x) { square = function(x) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var perfectSquares; var perfectSquares;
perfectSquares = function*() { perfectSquares = function*() {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var html; var html;
html = "<strong>\n cup of coffeescript\n</strong>"; html = "<strong>\n cup of coffeescript\n</strong>";

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var OPERATOR; var OPERATOR;
OPERATOR = /^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\.{2,3})/; OPERATOR = /^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\.{2,3})/;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var author, quote, sentence; var author, quote, sentence;
author = "Wittgenstein"; author = "Wittgenstein";

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var city, forecast, ref, temp, weatherReport; var city, forecast, ref, temp, weatherReport;
weatherReport = function(location) { weatherReport = function(location) {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var age, ages, child, yearsOld; var age, ages, child, yearsOld;
yearsOld = { yearsOld = {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var city, futurists, name, ref, ref1, street; var city, futurists, name, ref, ref1, street;
futurists = { futurists = {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var bitlist, kids, singers, song; var bitlist, kids, singers, song;
song = ["do", "re", "mi", "fa", "so"]; song = ["do", "re", "mi", "fa", "so"];

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
$('.account').attr({ $('.account').attr({
"class": 'active' "class": 'active'
}); });

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var cubes, list, math, num, number, opposite, race, square, var cubes, list, math, num, number, opposite, race, square,
slice = [].slice; slice = [].slice;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var ref, theBait, theSwitch; var ref, theBait, theSwitch;
theBait = 1000; theBait = 1000;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var close, contents, i, open, ref, tag, var close, contents, i, open, ref, tag,
slice = [].slice; slice = [].slice;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
String.prototype.dasherize = function() { String.prototype.dasherize = function() {
return this.replace(/_/g, "-"); return this.replace(/_/g, "-");
}; };

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var countdown, num; var countdown, num;
countdown = (function() { countdown = (function() {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var changeNumbers, inner, outer; var changeNumbers, inner, outer;
outer = 1; outer = 1;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var copy, end, middle, numbers, start; var copy, end, middle, numbers, start;
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]; numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var ref, zip; var ref, zip;
zip = typeof lottery.drawWinner === "function" ? (ref = lottery.drawWinner().address) != null ? ref.zipcode : void 0 : void 0; zip = typeof lottery.drawWinner === "function" ? (ref = lottery.drawWinner().address) != null ? ref.zipcode : void 0 : void 0;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var awardMedals, contenders, gold, rest, silver, var awardMedals, contenders, gold, rest, silver,
slice = [].slice; slice = [].slice;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var numbers, ref; var numbers, ref;
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var mobyDick; var mobyDick;
mobyDick = "Call me Ishmael. Some years ago -- never mind how long precisely -- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world..."; mobyDick = "Call me Ishmael. Some years ago -- never mind how long precisely -- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world...";

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
switch (day) { switch (day) {
case "Mon": case "Mon":
go(work); go(work);

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var grade, score; var grade, score;
score = 76; score = 76;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var error; var error;
try { try {

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
var lyrics, num; var lyrics, num;
if (this.studyingEconomics) { if (this.studyingEconomics) {

File diff suppressed because one or more lines are too long

View file

@ -110,7 +110,7 @@
<p> <p>
<b>Latest Version:</b> <b>Latest Version:</b>
<a href="http://github.com/jashkenas/coffeescript/tarball/1.9.1">1.9.1</a> <a href="http://github.com/jashkenas/coffeescript/tarball/1.9.2">1.9.2</a>
</p> </p>
<pre>npm install -g coffee-script</pre> <pre>npm install -g coffee-script</pre>
@ -1845,26 +1845,26 @@ tim = new Person({
it to the current value of <tt>this</tt>, right on the spot. This is helpful it to the current value of <tt>this</tt>, right on the spot. This is helpful
when using callback-based libraries like Prototype or jQuery, for creating when using callback-based libraries like Prototype or jQuery, for creating
iterator functions to pass to <tt>each</tt>, or event-handler functions iterator functions to pass to <tt>each</tt>, or event-handler functions
to use with <tt>bind</tt>. Functions created with the fat arrow are able to access to use with <tt>on</tt>. Functions created with the fat arrow are able to access
properties of the <tt>this</tt> where they're defined. properties of the <tt>this</tt> where they're defined.
</p> </p>
<div class='code'><pre><code><span class="function"><span class="title">Account</span> = <span class="params">(customer, cart)</span> -&gt;</span> <div class='code'><pre><code><span class="function"><span class="title">Account</span> = <span class="params">(customer, cart)</span> -&gt;</span>
<span class="property">@customer</span> = customer <span class="property">@customer</span> = customer
<span class="property">@cart</span> = cart <span class="property">@cart</span> = cart
$<span class="function"><span class="params">(<span class="string">'.shopping_cart'</span>)</span>.<span class="title">bind</span> '<span class="title">click</span>', <span class="params">(event)</span> =&gt;</span> $<span class="function"><span class="params">(<span class="string">'.shopping_cart'</span>)</span>.<span class="title">on</span> '<span class="title">click</span>', <span class="params">(event)</span> =&gt;</span>
<span class="property">@customer</span>.purchase <span class="property">@cart</span></code></pre><pre><code><span class="keyword">var</span> Account; <span class="property">@customer</span>.purchase <span class="property">@cart</span></code></pre><pre><code><span class="keyword">var</span> Account;
Account = <span class="function"><span class="keyword">function</span><span class="params">(customer, cart)</span> {</span> Account = <span class="function"><span class="keyword">function</span><span class="params">(customer, cart)</span> {</span>
<span class="keyword">this</span>.customer = customer; <span class="keyword">this</span>.customer = customer;
<span class="keyword">this</span>.cart = cart; <span class="keyword">this</span>.cart = cart;
<span class="keyword">return</span> $(<span class="string">'.shopping_cart'</span>).bind(<span class="string">'click'</span>, (<span class="function"><span class="keyword">function</span><span class="params">(_this)</span> {</span> <span class="keyword">return</span> $(<span class="string">'.shopping_cart'</span>).on(<span class="string">'click'</span>, (<span class="function"><span class="keyword">function</span><span class="params">(_this)</span> {</span>
<span class="keyword">return</span> <span class="function"><span class="keyword">function</span><span class="params">(event)</span> {</span> <span class="keyword">return</span> <span class="function"><span class="keyword">function</span><span class="params">(event)</span> {</span>
<span class="keyword">return</span> _this.customer.purchase(_this.cart); <span class="keyword">return</span> _this.customer.purchase(_this.cart);
}; };
})(<span class="keyword">this</span>)); })(<span class="keyword">this</span>));
}; };
</code></pre><script>window.example31 = "Account = (customer, cart) ->\n @customer = customer\n @cart = cart\n\n $('.shopping_cart').bind 'click', (event) =>\n @customer.purchase @cart"</script><div class='minibutton load' onclick='javascript: loadConsole(example31);'>load</div><br class='clear' /></div> </code></pre><script>window.example31 = "Account = (customer, cart) ->\n @customer = customer\n @cart = cart\n\n $('.shopping_cart').on 'click', (event) =>\n @customer.purchase @cart"</script><div class='minibutton load' onclick='javascript: loadConsole(example31);'>load</div><br class='clear' /></div>
<p> <p>
If we had used <tt>-&gt;</tt> in the callback above, <tt>@customer</tt> would If we had used <tt>-&gt;</tt> in the callback above, <tt>@customer</tt> would
have referred to the undefined "customer" property of the DOM element, have referred to the undefined "customer" property of the DOM element,
@ -1876,9 +1876,9 @@ Account = <span class="function"><span class="keyword">function</span><span clas
constructed. constructed.
</p> </p>
<p> <p>
CoffeeScript functions also support CoffeeScript functions also support
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">ES6 generator functions</a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*">ES6 generator functions</a>
through the <tt>yield</tt> keyword. There's no <tt>function*(){}</tt> through the <tt>yield</tt> keyword. There's no <tt>function*(){}</tt>
nonsense &mdash; a generator in CoffeeScript is simply a function that yields. nonsense &mdash; a generator in CoffeeScript is simply a function that yields.
</p> </p>
<div class='code'><pre><code><span class="function"><span class="title">perfectSquares</span> = -&gt;</span> <div class='code'><pre><code><span class="function"><span class="title">perfectSquares</span> = -&gt;</span>
@ -2491,6 +2491,36 @@ task(<span class="string">'build:parser'</span>, <span class="string">'rebuild t
Change Log Change Log
</h2> </h2>
<p>
<div class="anchor" id="1.9.2"></div>
<b class="header">
<a href="https://github.com/jashkenas/coffeescript/compare/1.9.1...1.9.2">1.9.2</a>
<span class="timestamp"> &mdash; <time datetime="2015-04-15">April 15, 2015</time></span>
</b>
<ul>
<li>
Fixed the watch mode error
<tt>The two following source files have the same output file</tt>.
</li>
<li>
<tt>yield</tt> now behaves as expected around expressions containing
<tt>this</tt>.
</li>
<li>
Added a Ruby-style <tt>-r</tt> option to the cli, which allows
requiring a module before execution with <tt>--eval</tt> or
<tt>--interactive</tt>.
</li>
<li>
To avoid dublicate browser requests for .coffee files, you can now
use script tags with the <tt>data-src</tt> attribute.
</li>
<li>
Minor bug fixes for IE8, strict ES5 regexp and browserify support.
</li>
</ul>
</p>
<p> <p>
<div class="anchor" id="1.9.1"></div> <div class="anchor" id="1.9.1"></div>
<b class="header"> <b class="header">
@ -2499,7 +2529,7 @@ task(<span class="string">'build:parser'</span>, <span class="string">'rebuild t
</b> </b>
<ul> <ul>
<li> <li>
Interpolation now works in object literal keys (again). You can use this to Interpolation now works in object literal keys (again). You can use this to
dynamically name properties. dynamically name properties.
</li> </li>
<li> <li>
@ -2527,10 +2557,10 @@ task(<span class="string">'build:parser'</span>, <span class="string">'rebuild t
<ul> <ul>
<li> <li>
CoffeeScript now supports ES6 generators. A generator is simply a function CoffeeScript now supports ES6 generators. A generator is simply a function
that <tt>yield</tt>s. that <tt>yield</tt>s.
</li> </li>
<li> <li>
More robust parsing and improved error messages for strings and regexes — More robust parsing and improved error messages for strings and regexes —
especially with respect to interpolation. especially with respect to interpolation.
</li> </li>
<li> <li>

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var CoffeeScript, compile, runScripts, var CoffeeScript, compile, runScripts,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var CoffeeScript, cakefileDirectory, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks; var CoffeeScript, cakefileDirectory, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var Lexer, SourceMap, base, compile, ext, formatSourcePosition, fs, getSourceMap, helpers, i, len, lexer, parser, path, ref, sourceMaps, vm, withPrettyErrors, var Lexer, SourceMap, base, compile, ext, formatSourcePosition, fs, getSourceMap, helpers, i, len, lexer, parser, path, ref, sourceMaps, vm, withPrettyErrors,
hasProp = {}.hasOwnProperty, hasProp = {}.hasOwnProperty,
@ -18,7 +18,7 @@
SourceMap = require('./sourcemap'); SourceMap = require('./sourcemap');
exports.VERSION = '1.9.1'; exports.VERSION = '1.9.2';
exports.FILE_EXTENSIONS = ['.coffee', '.litcoffee', '.coffee.md']; exports.FILE_EXTENSIONS = ['.coffee', '.litcoffee', '.coffee.md'];

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, findDirectoryIndex, forkNode, fs, helpers, hidden, joinTimeout, makePrelude, mkdirp, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, ref, removeSource, removeSourceDir, silentUnlink, sourceCode, sources, spawn, timeLog, usage, useWinPathSep, version, wait, watch, watchDir, watchedDirs, writeJs, var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, findDirectoryIndex, forkNode, fs, helpers, hidden, joinTimeout, makePrelude, mkdirp, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, ref, removeSource, removeSourceDir, silentUnlink, sourceCode, sources, spawn, timeLog, usage, useWinPathSep, version, wait, watch, watchDir, watchedDirs, writeJs,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap; var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var buildLocationData, extend, flatten, ref, repeat, syntaxErrorToString; var buildLocationData, extend, flatten, ref, repeat, syntaxErrorToString;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var key, ref, val; var key, ref, val;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var BOM, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HERECOMMENT_ILLEGAL, HEREDOC_DOUBLE, HEREDOC_INDENT, HEREDOC_SINGLE, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDENTABLE_CLOSERS, INDEXABLE, INVALID_ESCAPE, INVERSES, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LEADING_BLANK_LINE, LINE_BREAK, LINE_CONTINUER, LOGIC, Lexer, MATH, MULTI_DENT, NOT_REGEX, NUMBER, OPERATOR, POSSIBLY_DIVISION, REGEX, REGEX_FLAGS, REGEX_ILLEGAL, RELATION, RESERVED, Rewriter, SHIFT, SIMPLE_STRING_OMIT, STRICT_PROSCRIBED, STRING_DOUBLE, STRING_OMIT, STRING_SINGLE, STRING_START, TRAILING_BLANK_LINE, TRAILING_SPACES, UNARY, UNARY_MATH, VALID_FLAGS, WHITESPACE, compact, count, invertLiterate, key, locationDataToString, ref, ref1, repeat, starts, throwSyntaxError, var BOM, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HERECOMMENT_ILLEGAL, HEREDOC_DOUBLE, HEREDOC_INDENT, HEREDOC_SINGLE, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDENTABLE_CLOSERS, INDEXABLE, INVALID_ESCAPE, INVERSES, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LEADING_BLANK_LINE, LINE_BREAK, LINE_CONTINUER, LOGIC, Lexer, MATH, MULTI_DENT, NOT_REGEX, NUMBER, OPERATOR, POSSIBLY_DIVISION, REGEX, REGEX_FLAGS, REGEX_ILLEGAL, RELATION, RESERVED, Rewriter, SHIFT, SIMPLE_STRING_OMIT, STRICT_PROSCRIBED, STRING_DOUBLE, STRING_OMIT, STRING_SINGLE, STRING_START, TRAILING_BLANK_LINE, TRAILING_SPACES, UNARY, UNARY_MATH, VALID_FLAGS, WHITESPACE, compact, count, invertLiterate, key, locationDataToString, ref, ref1, repeat, starts, throwSyntaxError,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var Access, Arr, Assign, Base, Block, Call, Class, Code, CodeFragment, Comment, Existence, Expansion, Extends, For, HEXNUM, IDENTIFIER, IS_REGEX, IS_STRING, If, In, Index, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, NEGATE, NO, NUMBER, Obj, Op, Param, Parens, RESERVED, Range, Return, SIMPLENUM, STRICT_PROSCRIBED, Scope, Slice, Splat, Switch, TAB, THIS, Throw, Try, UTILITIES, Value, While, YES, addLocationDataFn, compact, del, ends, extend, flatten, fragmentsToText, isComplexOrAssignable, isLiteralArguments, isLiteralThis, locationDataToString, merge, multident, parseNum, ref1, ref2, some, starts, throwSyntaxError, unfoldSoak, utility, var Access, Arr, Assign, Base, Block, Call, Class, Code, CodeFragment, Comment, Existence, Expansion, Extends, For, HEXNUM, IDENTIFIER, IS_REGEX, IS_STRING, If, In, Index, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, NEGATE, NO, NUMBER, Obj, Op, Param, Parens, RESERVED, Range, Return, SIMPLENUM, STRICT_PROSCRIBED, Scope, Slice, Splat, Switch, TAB, THIS, Throw, Try, UTILITIES, Value, While, YES, addLocationDataFn, compact, del, ends, extend, flatten, fragmentsToText, isComplexOrAssignable, isLiteralArguments, isLiteralThis, locationDataToString, merge, multident, parseNum, ref1, ref2, some, starts, throwSyntaxError, unfoldSoak, utility,
extend1 = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, extend1 = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments, repeat; var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments, repeat;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var CoffeeScript, addHistory, addMultilineHandler, fs, getCommandId, merge, nodeREPL, path, ref, replDefaults, runInContext, updateSyntaxError, vm; var CoffeeScript, addHistory, addMultilineHandler, fs, getCommandId, merge, nodeREPL, path, ref, replDefaults, runInContext, updateSyntaxError, vm;

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var BALANCED_PAIRS, CALL_CLOSERS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, generate, k, left, len, ref, rite, var BALANCED_PAIRS, CALL_CLOSERS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, generate, k, left, len, ref, rite,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }, indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var Scope, var Scope,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

View file

@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.9.1 // Generated by CoffeeScript 1.9.2
(function() { (function() {
var LineMap, SourceMap; var LineMap, SourceMap;