| 1210 | } |
| 1211 | |
| 1212 | bool Function::get_length(JSContext* cx, unsigned argc, JS::Value* vp) { |
| 1213 | GJS_GET_THIS(cx, argc, vp, args, this_obj); |
| 1214 | Function* priv; |
| 1215 | if (!Function::for_js_instance(cx, this_obj, &priv, &args)) |
| 1216 | return false; |
| 1217 | args.rval().setInt32(priv->m_js_in_argc); |
| 1218 | return true; |
| 1219 | } |
| 1220 | |
| 1221 | bool Function::get_name(JSContext* cx, unsigned argc, JS::Value* vp) { |
| 1222 | GJS_CHECK_WRAPPER_PRIV(cx, argc, vp, rec, this_obj, Function, priv); |
no outgoing calls
no test coverage detected