def node_assert_stmt(self, node):
        jsvars = self.jsvars.copy()
        childs = node.children.__iter__()
        self.assert_value(node, childs.next().value, 'assert')
        test = self.dispatch(childs.next())
        arg = ''
        if len(node.children) > 2:
            child = childs.next()
            self.assert_value(node, child.value, ',')
            arg = self.dispatch(childs.next()) % ', %s'
        jsvars.update(locals())
        # TODO: return %(builtin)s['raise'](%(builtin)s['AssertionError']%(arg)s, %(None)s)
        return """if (!%(booljs)s(%(test)s)) {
+   return %(builtin)s['raise'](%(module)s['$new'](%(builtin)s['AssertionError']%(arg)s));
}""" % jsvars
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.node_assert_stmt/swapped operands of `%`