chore: Clean up comments
This commit is contained in:
parent
2538d430ff
commit
8a65ac764b
|
@ -48,7 +48,7 @@ fn recursive_serialize<'gc>(
|
|||
Value::Number(f) => json_obj[k] = f.into(),
|
||||
Value::String(s) => json_obj[k] = s.into(),
|
||||
Value::Object(o) => {
|
||||
// Don't attempt to serialize functions, etc
|
||||
// Don't attempt to serialize functions
|
||||
if !o
|
||||
.is_instance_of(avm, action_context, o, avm.prototypes.function)
|
||||
.unwrap()
|
||||
|
|
|
@ -23,6 +23,7 @@ pub struct SharedObjectData<'gc> {
|
|||
|
||||
/// The local name of this shared object
|
||||
name: Option<String>,
|
||||
// In future this will also handle remote SharedObjects
|
||||
}
|
||||
|
||||
impl fmt::Debug for SharedObject<'_> {
|
||||
|
@ -47,9 +48,6 @@ impl<'gc> SharedObject<'gc> {
|
|||
},
|
||||
))
|
||||
}
|
||||
//TODO: any need for these
|
||||
|
||||
//TODO: use enum Remote(url), Local(name)
|
||||
|
||||
pub fn set_name(&self, gc_context: MutationContext<'gc, '_>, name: String) {
|
||||
self.0.write(gc_context).name = Some(name);
|
||||
|
|
Loading…
Reference in New Issue