(
state: &mut State<'gc>,
agent: Gc<'gc, Agent<'gc>>,
message: String,
)
| 56 | } |
| 57 | |
| 58 | fn make_response_object<'gc>( |
| 59 | state: &mut State<'gc>, |
| 60 | agent: Gc<'gc, Agent<'gc>>, |
| 61 | message: String, |
| 62 | ) -> Value<'gc> { |
| 63 | let fields = [ |
| 64 | (state.intern_static("agent"), Value::Agent(agent)), |
| 65 | ( |
| 66 | state.intern_static("message"), |
| 67 | Value::String(state.intern(message.as_bytes())), |
| 68 | ), |
| 69 | ] |
| 70 | .into_iter() |
| 71 | .collect(); |
| 72 | Value::Object(state.gc_ref(Object { fields })) |
| 73 | } |
| 74 | |
| 75 | fn agent_methods<'gc>(ctx: &Context<'gc>) -> HashMap<InternedString<'gc>, Gc<'gc, Function<'gc>>> { |
| 76 | [( |
no test coverage detected