about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-02 00:10:21 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-02 00:10:40 +0200
commit49ea7f7f616ddaf11b3c57c432787a684195ede5 (patch)
treedad2e0b04487ce6f4e646875667c80e5d154eadd /src/js
parent249b3e71d9656e41c08dd3b83809c520d34104c8 (diff)
downloadchawan-49ea7f7f616ddaf11b3c57c432787a684195ede5.tar.gz
Remove outdated comment
Diffstat (limited to 'src/js')
-rw-r--r--src/js/javascript.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim
index 3e6eec14..1c5722fa 100644
--- a/src/js/javascript.nim
+++ b/src/js/javascript.nim
@@ -1908,13 +1908,6 @@ static JSClassDef """, `cdname`, """ = {
       let `classDef` = JSClassDefConst(unsafeAddr cd))
 
   endStmts.add(quote do:
-    # See the definition of `new':
-    # > **Note**:
-    # > The `finalizer` refers to the type `T`, not to the object!
-    # > This means that for each object of type `T` the finalizer will be
-    # > called!
-    # We exploit this by setting a finalizer here, which can then unregister
-    # any associated JS object from all relevant runtimes.
     var x: `t`
     new(x)
     `ctx`.newJSClass(`classDef`, `tname`, `sctr`, `tabList`, getTypePtr(x),