diff options
author | Ayke van Laethem <[email protected]> | 2018-08-31 21:56:46 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-08-31 21:56:46 +0200 |
commit | cd2a9d99a1b1276e95e97c49fd094d5b99d3e10b (patch) | |
tree | 11e12a14d9d6609d133002b75637b648d276158d /src/runtime/runtime_unix.go | |
parent | 887814a69db1116921fd9a3588d9528641382665 (diff) | |
download | tinygo-cd2a9d99a1b1276e95e97c49fd094d5b99d3e10b.tar.gz tinygo-cd2a9d99a1b1276e95e97c49fd094d5b99d3e10b.zip |
Add dummy runtime.SetFinalizer()
Requirement for the os package. The os package can't be compiled yet,
though.
Diffstat (limited to 'src/runtime/runtime_unix.go')
-rw-r--r-- | src/runtime/runtime_unix.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/runtime_unix.go b/src/runtime/runtime_unix.go index d21e80cd6..2c072022d 100644 --- a/src/runtime/runtime_unix.go +++ b/src/runtime/runtime_unix.go @@ -64,3 +64,7 @@ func GC() { func KeepAlive(x interface{}) { // Unimplemented. Only required with SetFinalizer(). } + +func SetFinalizer(obj interface{}, finalizer interface{}) { + // Unimplemented. +} |