예제 #1
0
 ejsval
 Function_prototype_get_doesNotThrow(ejsval env, ejsval _this, int argc, ejsval *args)
 {
     Function* fun = ((Function*)EJSVAL_TO_OBJECT(_this));
     return BOOLEAN_TO_EJSVAL(fun->llvm_fun->doesNotThrow());
 }
예제 #2
0
파일: ejs-ops.c 프로젝트: shana/echo-js
ejsval ToBoolean(ejsval exp)
{
    return BOOLEAN_TO_EJSVAL(ToEJSBool(exp));
}
예제 #3
0
파일: ejs-ops.c 프로젝트: shana/echo-js
ejsval
_ejs_op_not (ejsval exp)
{
    EJSBool truthy= _ejs_truthy (exp);
    return BOOLEAN_TO_EJSVAL (!truthy);
}
예제 #4
0
static ejsval
_ejs_RegExp_prototype_get_unicode (ejsval env, ejsval _this, uint32_t argc, ejsval *args)
{
    EJSRegExp* re = (EJSRegExp*)EJSVAL_TO_OBJECT(_this);
    return BOOLEAN_TO_EJSVAL(re->unicode);
}