From b1e13f7b73ccd009e0abf1bfa6cad65793bceb11 Mon Sep 17 00:00:00 2001 From: Nicolas Vivet Date: Mon, 29 Jun 2020 16:42:43 +0200 Subject: [PATCH] Fix a typo --- py_mini_racer/py_mini_racer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py_mini_racer/py_mini_racer.py b/py_mini_racer/py_mini_racer.py index 84f9d22a..69c0e490 100644 --- a/py_mini_racer/py_mini_racer.py +++ b/py_mini_racer/py_mini_racer.py @@ -255,7 +255,7 @@ def call(self, identifier, *args, **kwargs): """ Stricter Call with JSON serialization of returned value. """ json_args = self.json_impl.dumps(args, separators=(',', ':'), - cls=kwargs.get("encoder")) + cls=kwargs.pop("encoder", None)) js = "JSON.stringify({identifier}.apply(this, {json_args}))" ret = self.eval(js.format(identifier=identifier, json_args=json_args), **kwargs)