ruby2js 3.3.3 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ruby2js/converter/hash.rb +4 -1
- data/lib/ruby2js/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbbd02345fff681ac3c1e611c58256c5c3856daaed4d977bc5bc483f14394601
|
4
|
+
data.tar.gz: 849a7bd34c2e8da7cb8fdc508b2ae8139c8c8d2cde85314e6f00226001d415c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6ba76328764be80c07f4a79312b2d2b3f2095905705549db5af68612945699267909cfcd060c47409dc9daa78939285d8953de93b21f67ea406e4f7aa3a364d
|
7
|
+
data.tar.gz: 0b48f4bbdf1e989a69da07feded1841d088388c49b789dfd9c99db112ff6da9e3b2c79a49e36123c2cc9f49c67899dd7bcd321cd6f62ddd23e89f93b11f76a0b
|
@@ -99,7 +99,10 @@ module Ruby2JS
|
|
99
99
|
# use fat arrow syntax if block contains a reference to 'this'
|
100
100
|
if anonfn
|
101
101
|
walk = proc do |ast|
|
102
|
-
|
102
|
+
if ast == s(:self) or ast == s(:send, nil, :this)
|
103
|
+
anonfn = false
|
104
|
+
end
|
105
|
+
|
103
106
|
ast.children.each do |child|
|
104
107
|
walk[child] if child.is_a? Parser::AST::Node
|
105
108
|
end
|
data/lib/ruby2js/version.rb
CHANGED