Function: js--js-new

js--js-new is a byte-compiled function defined in js.el.gz.

Signature

(js--js-new CONSTRUCTOR &rest ARGUMENTS)

Documentation

Call CONSTRUCTOR as a constructor, with arguments ARGUMENTS.

CONSTRUCTOR is a JS handle, a string, or a list of these things.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js--js-new (constructor &rest arguments)
  "Call CONSTRUCTOR as a constructor, with arguments ARGUMENTS.
CONSTRUCTOR is a JS handle, a string, or a list of these things."
  (apply #'js--js-funcall
         '(interactor "_callNew")
         constructor arguments))