Skip to content

Commit bb4df27

Browse files
authored
Skip invalid coffeescript test (#129)
decaffeinate can't reasonably transform inline JS that relies on CS implementation details, so get rid of a test for that.
1 parent 9bb5a5c commit bb4df27

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/coffeescript/decaffeinate.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,20 @@ index 18862a4..5c11837 100644
126126
});
127127

128128
test('patchStackTrace stack prelude consistent with V8', () => {
129+
diff --git a/test/functions.js b/test/functions.js
130+
index b5e72c4..bc03139 100644
131+
--- a/test/functions.js
132+
+++ b/test/functions.js
133+
@@ -118,7 +118,8 @@ test('self-referencing functions', () => {
134+
return eq(changeMe, 2);
135+
});
136+
137+
-test("#2009: don't touch `` `this` ``", () => {
138+
+// https://github.com/decaffeinate/decaffeinate/blob/master/docs/correctness-issues.md#inline-js-that-relies-on-coffeescript-implementation-details-may-not-be-transformed-correctly
139+
+skippedTest("#2009: don't touch `` `this` ``", () => {
140+
const nonceA = {};
141+
const nonceB = {};
142+
let fn = null;
129143
diff --git a/test/importing.js b/test/importing.js
130144
index f8dec2a..91e3edd 100644
131145
--- a/test/importing.js

0 commit comments

Comments
 (0)