code: def evaljs(self, code, **kwargs):
          
          jsvars = json.dumps(kwargs)
          jscode = self._adapt_code(code)
  
          if not isinstance(jscode, bytes):
              jscode = jscode.encode('utf-8')
  
          if not isinstance(jsvars, bytes):
              jsvars = jsvars.encode('utf-8')
  
          res = _dukpy.eval_string(self, jscode, jsvars)
          if res is None:
              return None
  
          return json.loads(res.decode('utf-8'))
docs: Runs JavaScript code in the context of the interpreter.
  
          All arguments will be converted to plain javascript objects
          through the JSON encoder and will be available in `dukpy`
          global object.
  
          Returns the last object on javascript stack.