1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-24 11:14:48 +00:00

Merge pull request #30 from jfcap/get-set-abstract

Get set abstract
This commit is contained in:
Calvin Rose
2019-02-05 19:09:56 -05:00
committed by GitHub
9 changed files with 206 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ static Janet call_nonfn(JanetFiber *fiber, Janet callee) {
int32_t argn = fiber->stacktop - fiber->stackstart;
Janet ds, key;
if (argn != 1) janet_panicf("%v called with arity %d, expected 1", callee, argn);
if (janet_checktypes(callee, JANET_TFLAG_INDEXED | JANET_TFLAG_DICTIONARY)) {
if (janet_checktypes(callee, JANET_TFLAG_INDEXED | JANET_TFLAG_DICTIONARY | JANET_TFLAG_ABSTRACT)) {
ds = callee;
key = fiber->data[fiber->stackstart];
} else {