Conflicts:
src/toplevel.lisp
(indent "r.push(" (ls-compile nil) ");" *newline*)
"return r;" *newline*))
+;;; FIXME: should take optional min-extension.
+;;; FIXME: should use fill-pointer instead of the absolute end of array
+(define-builtin vector-push-extend (new vector)
+ (js!selfcall
+ "var v = " vector ";" *newline*
+ "v.push(" new ");" *newline*
+ "return v;"))
+
(define-builtin arrayp (x)
(js!bool
(js!selfcall
setq sixth some string string-upcase string= stringp subseq subst
symbol-function symbol-name symbol-package symbol-plist
symbol-value symbolp t tagbody tailp tenth third throw tree-equal
- truncate unless unwind-protect values values-list variable warn when
+ truncate unless unwind-protect values values-list variable vector-push-extend warn when
write-line write-string zerop))
(setq *package* *user-package*)