Skip to content

Commit 13ad200

Browse files
committed
v0.1.2 - process seq/etc in functions.
1 parent 6eb6ade commit 13ad200

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ "name": "pimscript",
2-
"version": "0.1.1",
2+
"version": "0.1.2",
33
"description": "Converts JavaScript to be more likely to be compatible with ADsafe",
44
"keywords": ["Pim","javascript","ADsafe","FBJS"],
55
"homepage": "https://github.com/p-im/pim-script",

src/pimscript.coffee

+2-3
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,8 @@ walk = (ast) ->
238238
for ast2, i in ast[1]
239239
ast[1][i] = walk ast2
240240
else if type is 'function'
241-
#skip ('function', name, arguments, ast)
242-
for ast2, i in ast[3]
243-
ast[3][i] = walk ast2
241+
tmp = walk ['block',ast[3]]
242+
ast[3] = tmp[1]
244243
else if type is 'stat'
245244
ast[1] = walk ast[1]
246245
else if type is 'assign'

0 commit comments

Comments
 (0)