From 8deaaf16a8000eb546f0d3e15de9b358eb380dbc Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Mon, 1 Aug 2011 23:13:56 -0500 Subject: [PATCH] Fix typo --- lib/execjs/johnson_runtime.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/execjs/johnson_runtime.rb b/lib/execjs/johnson_runtime.rb index 1d3e1ff..44a9dae 100644 --- a/lib/execjs/johnson_runtime.rb +++ b/lib/execjs/johnson_runtime.rb @@ -7,7 +7,7 @@ module ExecJS end def exec(source, options = {}) - souce = source.encode('UTF-8') if source.respond_to?(:encode) + source = source.encode('UTF-8') if source.respond_to?(:encode) if /\S/ =~ source eval "(function(){#{source}})()", options @@ -15,7 +15,7 @@ module ExecJS end def eval(source, options = {}) - souce = source.encode('UTF-8') if source.respond_to?(:encode) + source = source.encode('UTF-8') if source.respond_to?(:encode) if /\S/ =~ source unbox @runtime.evaluate("(#{source})")