jscl-project / jscl

A Lisp-to-JavaScript compiler bootstrapped from Common Lisp

Home Page:https://jscl-project.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect &allow-other-keys

vlad-km opened this issue · comments

commented

SBCL

CL-USER> (defun frob-lambda
    (&rest properties
     &key name (initargs ()) (initform nil) (initfunction nil) (readers ()) (writers ()) (allocation :instance)
     &allow-other-keys)
(print properties) (print (getf properties :kik)))

(frob-lambda :kik 1)
=> 1

JSCL

CL-USER> (defun frob-lambda
    (&rest properties
     &key name (initargs ()) (initform nil) (initfunction nil) (readers ()) (writers ()) (allocation :instance)
     &allow-other-keys)
(print properties) (print (getf properties :kik)))

CL-USER> (frob-lambda :kik 1)
ERROR: Unknown keyword argument KIK
CL-USER>