diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/javascript.nim | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim index 17bc555a..4de01aa9 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -1698,7 +1698,6 @@ type macro registerType*(ctx: typed, t: typed, parent: JSClassID = 0, asglobal = false, nointerface = false, name: static string = "", extra_getset: static openarray[TabGetSet] = [], - extra_funcs: static openarray[TabFunc] = [], namespace: JSValue = JS_NULL): JSClassID = result = newStmtList() let tname = t.strVal # the nim type's name. @@ -1797,14 +1796,6 @@ macro registerType*(ctx: typed, t: typed, parent: JSClassID = 0, asglobal = let m = x.magic tabList.add(quote do: JS_CGETSET_MAGIC_DEF(`k`, `g`, `s`, `m`)) - for x in extra_funcs: - #TODO TODO TODO ditto. wtf - if repr(x) != "" and repr(x) != "[]": - let name = x.name - let fun = x.fun - tabList.add(quote do: - JS_CFUNC_DEF(`name`, 0, (`fun`))) - if ctorFun != nil: sctr = ctorFun result.add(ctorImpl) |