🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
62c39c2
Target Go 1.12, update version to GopherJS 1.12-wip.
hajimehoshi Mar 2, 2019
a395e60
compiler/natives/src/internal/cpu: Add CacheLinePadSize
hajimehoshi Mar 2, 2019
f022788
compiler/natives/src/reflect: Update function signatures
hajimehoshi Mar 2, 2019
80a8d4e
compiler/natives/src/syscall: Add Syscall18
hajimehoshi Mar 2, 2019
9576d72
compiler/natives/src/syscall: Rename syscall
hajimehoshi Mar 2, 2019
756c79f
Update circle.yml
hajimehoshi Mar 2, 2019
96c95ab
compiler/natives/src/internal/syscall/unix: Add fstatatTrap
hajimehoshi Mar 3, 2019
6b3d4d1
go generate
hajimehoshi Mar 2, 2019
f65c39d
compiler/natives/src/syscall: Define syscall functions for Darwin
hajimehoshi Mar 3, 2019
9793ddf
compiler/natives/src/crypto/rand: Add func batched
hajimehoshi Mar 3, 2019
c0c4111
compiler/natives/src: Fix some test failures
hajimehoshi Mar 3, 2019
3a29d97
compiler/natives/src: Fix test failures
hajimehoshi Mar 3, 2019
250c084
compiler/natives/src/reflect: Fix failure tests
hajimehoshi Mar 3, 2019
57d7708
tests: Add new failure tests in Go 1.12
hajimehoshi Mar 3, 2019
cf99cfe
Address on reviews
hajimehoshi Mar 4, 2019
158447e
Address on reviews
hajimehoshi Mar 5, 2019
db381e3
Fix circle.yml
hajimehoshi Mar 5, 2019
35239cf
Fix testing issues on macOS
hajimehoshi Mar 5, 2019
2ea661b
reflect: Reimplement mapiter functions
hajimehoshi Mar 5, 2019
4711f47
Remove filename suffixes _js
hajimehoshi Mar 9, 2019
a2f6a71
Add .std_test_pkg_exlusions
hajimehoshi Mar 9, 2019
9da6e14
Test internal/fmtsort
hajimehoshi Mar 9, 2019
3844e18
Add more testable standard libs
hajimehoshi Mar 10, 2019
e34c676
Fix .std_test_pkg_exclusions
hajimehoshi Mar 10, 2019
18df411
go generate
hajimehoshi Mar 9, 2019
8471480
compiler/natives/src/reflect: Add comments
hajimehoshi Mar 27, 2019
09ef6f4
compiler: Update version to 1.12-1
hajimehoshi Mar 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
compiler/natives/src: Fix test failures
  • Loading branch information
hajimehoshi committed Mar 28, 2019
commit 3a29d97629e1c1297303cbcfc59ed8340a3a71ac
2 changes: 1 addition & 1 deletion compiler/gopherjspkg/fs_vfsdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 27 additions & 11 deletions compiler/natives/fs_vfsdata.go

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions compiler/natives/src/math/bits/bits.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// +build js

package bits

type _err string

func (e _err) Error() string {
return string(e)
}

// RuntimeError implements runtime.Error.
func (e _err) RuntimeError() {
}

var (
overflowError error = _err("runtime error: integer overflow")
divideError error = _err("runtime error: integer divide by zero")
)
2 changes: 2 additions & 0 deletions compiler/natives/src/reflect/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,8 @@ func (v Value) IsNil() bool {
return v.object() == js.InternalObject(false)
case Interface:
return v.object() == js.Global.Get("$ifaceNil")
case UnsafePointer:
return v.object().Unsafe() == 0
default:
panic(&ValueError{"reflect.Value.IsNil", k})
}
Expand Down
4 changes: 4 additions & 0 deletions compiler/natives/src/strings/strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ func TestBuilderAllocs(t *testing.T) {
func TestBuilderGrow(t *testing.T) {
t.Skip("runtime.ReadMemStats, testing.AllocsPerRun not supported in GopherJS")
}

func TestCompareStrings(t *testing.T) {
t.Skip("unsafeString not supported in GopherJS")
}