mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
76d04990f4
These produce link errors when trying to import the "os" package.
29 lines
650 B
Go
29 lines
650 B
Go
// +build js,arm avr
|
|
|
|
package runtime
|
|
|
|
// This file stubs out some external functions declared by the syscall/js
|
|
// package. They cannot be used on microcontrollers.
|
|
|
|
type js_ref uint64
|
|
|
|
//go:linkname js_valueGet syscall/js.valueGet
|
|
func js_valueGet(v js_ref, p string) js_ref {
|
|
return 0
|
|
}
|
|
|
|
//go:linkname js_valueNew syscall/js.valueNew
|
|
func js_valueNew(v js_ref, args []js_ref) (js_ref, bool) {
|
|
return 0, true
|
|
}
|
|
|
|
//go:linkname js_valueCall syscall/js.valueCall
|
|
func js_valueCall(v js_ref, m string, args []js_ref) (js_ref, bool) {
|
|
return 0, true
|
|
}
|
|
|
|
//go:linkname js_stringVal syscall/js.stringVal
|
|
func js_stringVal(x string) js_ref {
|
|
return 0
|
|
}
|