Skip to content

Instantly share code, notes, and snippets.

@carlhoerberg
Created December 20, 2011 23:17
Show Gist options
  • Save carlhoerberg/1503754 to your computer and use it in GitHub Desktop.
Save carlhoerberg/1503754 to your computer and use it in GitHub Desktop.
$ jruby -e "require 'uglifier'; Uglifier.compile File.read 'jquery-1.7.1.js'"
java(25487,0x10f18a000) malloc: *** error for object 0x7f9604a05300: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
@dnagir
Copy link

dnagir commented Dec 20, 2011

It does work for me (see below). And JRuby is officially supported via Travis-CI: http://travis-ci.org/#!/lautis/uglifier/jobs/408520

What version of JRuby are you using (I also have --1.9 mode enabled)? What is your env?

> jruby -v
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.6.0_29) [darwin-i386-java]
> jirb
jruby-1.6.5 :001 > require 'uglifier'
 => true 
jruby-1.6.5 :002 > Uglifier.compile File.read 'knockout.js'
 => "the compresses JS goes here" 

@carlhoerberg
Copy link
Author

$ jruby -v
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment