Skip to content

Commit

Permalink
Merge pull request #141 from mattmenefee/update-coffeescript-link
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot authored Feb 8, 2024
2 parents e630a1f + 4dd71a2 commit 45043f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ A longer example, demonstrating how to invoke the CoffeeScript compiler:

``` ruby
require "execjs"
require "open-uri"
source = open("http://coffeescript.org/extras/coffee-script.js").read
require "net/http"
source = Net::HTTP.get(URI("https://coffeescript.org/browser-compiler-legacy/coffeescript.js"))

context = ExecJS.compile(source)
context.call("CoffeeScript.compile", "square = (x) -> x * x", bare: true)
Expand Down

0 comments on commit 45043f1

Please sign in to comment.