Skip to content

Commit

Permalink
test locals against globals and existing locals
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jun 20, 2019
1 parent b9a219d commit a5bcd3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/moon/dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@
while ((local = expressionRE.exec(parameters)) !== null) {
local = local[1];

if (name !== undefined && globals.indexOf(name) === -1 && locals.indexOf(name) === -1) {
if (local !== undefined && globals.indexOf(local) === -1 && locals.indexOf(local) === -1) {
locals = locals.concat([local]);
}
} // Generate the child and pass the parameters as locals.
Expand Down
Loading

0 comments on commit a5bcd3b

Please sign in to comment.