Skip to content

Commit 2270d04

Browse files
authored
Pin CoffeeScript2 to 2.2.1 (#131)
Previously, it was taking the latest code, but there have been recent syntax bug fixes with test cases, and naturally those won't be handled by decaffeinate until it updates to the most recent parser.
1 parent 21d6932 commit 2270d04

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/coffeescript2/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export default {
22
cloneUrl: 'https://github.com/jashkenas/coffeescript.git',
33
forkUrl: '[email protected]:decaffeinate-examples/coffeescript2.git',
4+
branch: '2.2.1',
45
useDefaultConfig: true,
56
extraDependencies: [
67
'babel-plugin-transform-remove-strict-mode',

examples/coffeescript2/decaffeinate.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ index 0000000..5d768d2
3636
@@ -0,0 +1,20 @@
3737
+#!/bin/bash
3838
+
39-
+# Simple shell script to compare the decaffeinated CoffeeScript compiler
39+
+# Simple shell script to compare the decaffeinated CoffeeScript 2.2.1 compiler
4040
+# with the official one, running it on all CoffeeScript files in the repo and
4141
+# making sure the output is the same. For now, it just fails on the first error.
4242
+
@@ -45,7 +45,7 @@ index 0000000..5d768d2
4545
+rm -rf examples-tmp
4646
+mkdir examples-tmp
4747
+cd examples-tmp
48-
+git clone https://github.com/jashkenas/coffeescript.git
48+
+git clone https://github.com/jashkenas/coffeescript.git --branch 2.2.1
4949
+
5050
+for path in $(find coffeescript -name '*.coffee'); do
5151
+ echo "Comparing ${path}..."

0 commit comments

Comments
 (0)