aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/runtime_unix.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-08-31 21:56:46 +0200
committerAyke van Laethem <[email protected]>2018-08-31 21:56:46 +0200
commitcd2a9d99a1b1276e95e97c49fd094d5b99d3e10b (patch)
tree11e12a14d9d6609d133002b75637b648d276158d /src/runtime/runtime_unix.go
parent887814a69db1116921fd9a3588d9528641382665 (diff)
downloadtinygo-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.go4
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.
+}