@@ -76,6 +76,7 @@ data JS = JSRaw String
76 | JSWhile JS JS
76 | JSWhile JS JS
77 | JSFFI String [JS]
77 | JSFFI String [JS]
78 | JSAnnotation JSAnnotation JS
78 | JSAnnotation JSAnnotation JS
80 deriving Eq
81 deriving Eq
@@ -129,6 +130,9 @@ compileJS' indent (JSAnnotation annotation js) =
129 `T.append` " */\n"
130 `T.append` " */\n"
130 `T.append` compileJS' indent js
131 `T.append` compileJS' indent js
133+compileJS' indent (JSDelete js) =
134+ "delete " `T.append` compileJS' 0 js
132compileJS' indent (JSFFI raw args) =
136compileJS' indent (JSFFI raw args) =
133 ffi raw (map (T.unpack . compileJS' indent) args)
137 ffi raw (map (T.unpack . compileJS' indent) args)