Switch back to window.eval(xxx) instead of eval(xxx, window) -- arghghgh.
This commit is contained in:
parent
ca6b23684e
commit
17b513eafb
@ -170,7 +170,7 @@ module Jasmine
|
||||
def eval_js(script)
|
||||
escaped_script = "'" + script.gsub(/(['\\])/) { '\\' + $1 } + "'"
|
||||
|
||||
result = @driver.get_eval("eval(#{escaped_script}, window)")
|
||||
result = @driver.get_eval("window.eval(#{escaped_script})")
|
||||
JSON.parse("[#{result}]")[0]
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user