mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Do not do weird scope things in MethodDefiner
Variable `m` comes from a previous list comprehension earlier in the function is not actually properly defined.
This commit is contained in:
parent
4930479ac8
commit
3f30c7d8be
1 changed files with 2 additions and 0 deletions
|
@ -1654,6 +1654,8 @@ class MethodDefiner(PropertyDefiner):
|
|||
(maplikeOrSetlikeOrIterable and
|
||||
maplikeOrSetlikeOrIterable.isIterable() and
|
||||
maplikeOrSetlikeOrIterable.isValueIterator())):
|
||||
m = maplikeOrSetlikeOrIterable
|
||||
|
||||
# Add our keys/values/entries/forEach
|
||||
self.regular.append({
|
||||
"name": "keys",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue