diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-08 01:32:17 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-08 01:32:17 +0200 |
commit | def6f3e5c28974063b650db194a0c055d4dea685 (patch) | |
tree | d5281535fe5c638a83f2343506d7e68209b5e965 /src/js | |
parent | f037d5ecadbdfeadf9c684341964d9c350a9cff4 (diff) | |
download | chawan-def6f3e5c28974063b650db194a0c055d4dea685.tar.gz |
remove dead code, fix openArray casing
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/javascript.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim index cbd0b205..f2cd8a10 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -327,7 +327,7 @@ proc getJSFunction*[T, U](ctx: JSContext, val: JSValue): return fromJSFunction1[T, U](ctx, val) proc defineConsts*[T](ctx: JSContext, classid: JSClassID, - consts: static openarray[(string, T)]) = + consts: static openArray[(string, T)]) = let proto = ctx.getOpaque().ctors[classid] for (k, v) in consts: ctx.definePropertyE(proto, k, v) @@ -1583,7 +1583,7 @@ proc bindEndStmts(endstmts: NimNode, info: RegistryInfo) = macro registerType*(ctx: typed, t: typed, parent: JSClassID = 0, asglobal = false, nointerface = false, name: static string = "", has_extra_getset: static bool = false, - extra_getset: static openarray[TabGetSet] = [], + extra_getset: static openArray[TabGetSet] = [], namespace: JSValue = JS_NULL, errid = opt(JSErrorEnum), ishtmldda = false): JSClassID = var stmts = newStmtList() |