You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/libs/js2py/prototypes/jsboolean.py

11 lines
337 B

class BooleanPrototype:
def toString():
if this.Class != 'Boolean':
raise this.Js(TypeError)('this must be a boolean')
return 'true' if this.value else 'false'
def valueOf():
if this.Class != 'Boolean':
raise this.Js(TypeError)('this must be a boolean')
return this.value