def __init__(self, value): from js.object_space import newint self.w_intvalue = newint(int(value))
def eval(self, ctx): op = ctx.stack_pop().ToInt32() from js.object_space import newint ctx.stack_append(newint(~op))
def operation(self, ctx, op1, op2): from js.object_space import newint return newint(op1 | op2)