Ensure calls to `getURL`, invocations of `ActionGetURL`, and other functionality that writes locals doesn't panic due to double mutable borrows.

This commit is contained in:
David Wendt 2019-11-02 17:31:03 -04:00 committed by Mike Welsh
parent 4e16c91dbb
commit 1236b5491e
1 changed files with 3 additions and 4 deletions

View File

@ -102,11 +102,10 @@ impl<'gc> Avm1<'gc> {
.read()
.scope()
.locals_cell();
let keys = locals.read().get_keys();
for k in locals.read().get_keys() {
let v = locals
.write(context.gc_context)
.get(&k, self, context, locals);
for k in keys {
let v = locals.read().get(&k, self, context, locals);
form_values.insert(k, v.clone().into_string());
}