ariya/phantomjs — pull request #231 by wangyang0123 (2012-04-06 13:30:28+00:00)
Title: added passing variables to function for page.evaluate

usage: page.evaluate(func[, arg0, arg1, arg2, ...])

based on my implementation of the evaluate function in the issue 132.
it allows all types of variables to be arguments (the test case includes boolean, number, string, undefined, null, plain object, function, array and regular expression).

issue here:
http://code.google.com/p/phantomjs/issues/detail?id=132