          (forward-char)
        (funcall 'self-insert-command 1))))
 
-(defun js2r--self-insert-wrapping (open close semicolonp)
+(defun js2r--self-insert-wrapping (open close)
   (cond
    ((use-region-p)
     (save-excursion


(defun js2r--something-to-close-statement ()
  (cond
   ((not (eolp)) "")
   ((js2-array-node-p (js2-node-at-point)) (js2r--comma-unless "]"))
   ((js2-object-node-p (js2-node-at-point)) (concat ": " (js2r--comma-unless "}")))

   ((js2r--does-not-need-semi) "")
   (:else ";")))

(js2r--setup-wrapping-pair "(" ")")
(js2r--setup-wrapping-pair "{" "}")
(js2r--setup-wrapping-pair "[" "]")
(js2r--setup-wrapping-pair "\"" "\"")
(js2r--setup-wrapping-pair "'" "'")

;;

