diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-03 20:28:57 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-03 20:28:57 +0200 |
commit | 5acbab703ba074e20dbc0ce729d9f57f467901e0 (patch) | |
tree | 6796b11781a681c647d6eb0f15b44f92530238ef /src/js | |
parent | c906166374d0ce921b2c49d60b41288424414a47 (diff) | |
download | chawan-5acbab703ba074e20dbc0ce729d9f57f467901e0.tar.gz |
js: change jsstfunc syntax
Interface:function -> Interface.function for consistency with regular JS syntax
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 39330361..cdf6b127 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -850,7 +850,7 @@ func getFuncName(fun: NimNode; jsname, staticName: string): string = if jsname != "": return jsname if staticName != "": - let i = staticName.find(':') + let i = staticName.find('.') if i != -1: return staticName.substr(i + 1) let x = $fun[0] @@ -934,7 +934,7 @@ proc initGenerator(fun: NimNode; t: BoundFunctionType; thisname = some("this"); if staticName == "": gen.addThisName(thisname) else: - gen.thisType = staticName.until(':') + gen.thisType = staticName.until('.') gen.newName = ident($gen.t & "_" & gen.funcName) return gen |