Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/blame/commit/189840bea78e20c4379a777222dad79def3f3385/libs/js2py/internals/constructors/jsstring.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/libs/js2py/internals/constructors/jsstring.py

24 lines
514 B

from ..conversions import *
from ..func_utils import *
from six import unichr
def fromCharCode(this, args):
res = u''
for e in args:
res += unichr(to_uint16(e))
return res
def String(this, args):
if len(args) == 0:
return u''
return to_string(args[0])
def StringConstructor(args, space):
temp = space.NewObject()
temp.prototype = space.StringPrototype
temp.Class = 'String'
temp.value = to_string(get_arg(args, 0)) if len(args) > 0 else u''
return temp