(self, script)
| 173 | return results[0] |
| 174 | |
| 175 | def eval_pyv8(self, script): |
| 176 | with PyV8.JSLocker(): |
| 177 | with PyV8.JSContext() as rt: |
| 178 | return rt.eval(script) |
| 179 | |
| 180 | def eval_js(self, script): |
| 181 | script = "print(eval(unescape('%s')))" % urllib.quote(script) |