Skip to content

Instantly share code, notes, and snippets.

Created May 15, 2012 13:53
What would you like to do?
`git bisect` demo using CoffeeScript 1.3.2 "=> super" bug

To run this,

git clone git://
cd coffee-script

Copy into the coffee-script directory, then

git bisect start
# git checkout 1.3.2
# sh # FAIL -> BAD
git bisect bad
git checkout 1.2.0
# sh # No output -> GOOD
git bisect good
git bisect run sh


5542e00b80d0f125e57955fccb3ca3a4f61d39f7 is the first bad commit
commit 5542e00b80d0f125e57955fccb3ca3a4f61d39f7
Author: Maxwell Krohn [ SNIP ]
Date:   Wed Apr 11 18:05:33 2012 -0400

    sart work on a bugfix, but we're not covering the exact case in issue #1183

:040000 040000 4b3b476f178beb8f8ed645c0b67f0376e4ca46d2 f7b1791f6a4b27c9320e962083ad41cb90165563 M	lib
:040000 040000 750baab5ac31452ceb559dc64420cb21c4fb3d7e 057c549650e44b7c6d2868718cec50316570a5e3 M	src
:040000 040000 5801b7f26750041bedaa1be50d6553f199bbc7f3 83d98230f278d9ec5dd7f6929ac39e2a864e845e M	test
bisect run success
cat > <<HERE
class A
v: 1
m: ->
return @v
class B extends A
m: =>
@v = 2
result = new B().m() # Should be 2
if result isnt 2
console.error "FAIL"
process.exit 1
process.exit 0
bin/cake build
exec bin/coffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment