mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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 and
|
||||||
maplikeOrSetlikeOrIterable.isIterable() and
|
maplikeOrSetlikeOrIterable.isIterable() and
|
||||||
maplikeOrSetlikeOrIterable.isValueIterator())):
|
maplikeOrSetlikeOrIterable.isValueIterator())):
|
||||||
|
m = maplikeOrSetlikeOrIterable
|
||||||
|
|
||||||
# Add our keys/values/entries/forEach
|
# Add our keys/values/entries/forEach
|
||||||
self.regular.append({
|
self.regular.append({
|
||||||
"name": "keys",
|
"name": "keys",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue