From def6f3e5c28974063b650db194a0c055d4dea685 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 8 Apr 2024 01:32:17 +0200 Subject: remove dead code, fix openArray casing --- src/js/javascript.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/js/javascript.nim') 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() -- cgit 1.4.1-2-gfad0