Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
79b8137
Merge branch 'master' of github.com:gopherjs/gopherjs into reflectlit…
grantnelson-wf Jan 23, 2026
6698cc2
Redirecting link for code moved from reflect to abi
grantnelson-wf Jan 27, 2026
5e955ea
working on reflectlite and abi
grantnelson-wf Jan 29, 2026
ff4bd26
working on reflectlite and abi
grantnelson-wf Jan 29, 2026
1e9a41b
working on reflectlite and abi
grantnelson-wf Jan 29, 2026
2dd4e8a
working on reflectlite and abi
grantnelson-wf Jan 29, 2026
2f0e427
working on reflectlite and abi
grantnelson-wf Jan 29, 2026
c548151
working on reflectlite and abi
grantnelson-wf Jan 30, 2026
490c7dc
Started thinning out reflectlite and moved Name to abi
grantnelson-wf Jan 30, 2026
aa74f45
adding in check overrides to help confirm changes
grantnelson-wf Feb 3, 2026
c613514
Working through reflectlite and got to tests requiring reflect
grantnelson-wf Feb 3, 2026
0662b09
updating reflect and abi
grantnelson-wf Feb 4, 2026
f28da7e
trying to updated reflect
grantnelson-wf Feb 5, 2026
c43bb75
Merge branch 'master' of github.com:/gopherjs/gopherjs into reflectli…
grantnelson-wf Feb 5, 2026
4578fba
slogging through reflect
grantnelson-wf Feb 5, 2026
203c1d0
Working on reflect
grantnelson-wf Feb 9, 2026
da02726
working on reflect
grantnelson-wf Feb 10, 2026
1f96b27
Got reflect value compiling, now onto type
grantnelson-wf Feb 10, 2026
e7aa99f
Finish reflect, now fixing rwmutex, hopefully soon I'll be able to st…
grantnelson-wf Feb 10, 2026
e54c491
Got it compiling for abi tests, still panicked but getting there
grantnelson-wf Feb 10, 2026
59e6e1e
debugging tests
grantnelson-wf Feb 11, 2026
a8f4b60
cleaning up some changes
grantnelson-wf Feb 11, 2026
a6e18e2
cleaning up some changes
grantnelson-wf Feb 11, 2026
718124e
cleaning up some changes
grantnelson-wf Feb 11, 2026
f0230f7
cleaning up some changes
grantnelson-wf Feb 11, 2026
e08d727
cleaning up some changes
grantnelson-wf Feb 11, 2026
13c232a
fixing issues in ABI
grantnelson-wf Feb 12, 2026
f547d49
fixing issues in ABI
grantnelson-wf Feb 12, 2026
692e72a
fixing up the tests
grantnelson-wf Feb 12, 2026
163d51b
fixing up the tests
grantnelson-wf Feb 12, 2026
c81e52a
Started fixing my mistake
grantnelson-wf Feb 13, 2026
decbee6
Started fixing my mistake
grantnelson-wf Feb 17, 2026
3e42703
Finished fixing mistake, continue with reflectlite tests
grantnelson-wf Feb 17, 2026
2d4d8ca
Trying to use kindTypeExt
grantnelson-wf Feb 18, 2026
4f2e9bb
Fixed the kindTypeExt problem
grantnelson-wf Feb 18, 2026
63ff450
Cleaning up reflect
grantnelson-wf Feb 18, 2026
c71da24
Cleaning up reflect
grantnelson-wf Feb 18, 2026
9e2fe95
Cleaning up reflect
grantnelson-wf Feb 18, 2026
5f5dd3b
Cleaning up reflect
grantnelson-wf Feb 18, 2026
79892af
Cleaning up reflect
grantnelson-wf Feb 18, 2026
ad1e462
Cleaning up reflect
grantnelson-wf Feb 18, 2026
21c87b7
Cleaning up reflect
grantnelson-wf Feb 19, 2026
54d40e4
Fixed type compare for DeepEqual
grantnelson-wf Feb 19, 2026
de98440
Fixed the last type of invalid pointer casting
grantnelson-wf Feb 19, 2026
b04da8a
Fixed the remaining issues in reflect
grantnelson-wf Feb 19, 2026
e793abb
Fixed the remaining issues in reflect
grantnelson-wf Feb 19, 2026
7a2372a
Merge branch 'go1.21' of github.com:/gopherjs/gopherjs into reflectli…
grantnelson-wf Feb 20, 2026
4462b7e
Merge branch 'newOverrideDirectives' of github.com:/Workiva/gopherjs …
grantnelson-wf Feb 20, 2026
df2b1da
Merge branch 'go1.21' of github.com:/gopherjs/gopherjs into reflectli…
grantnelson-wf Feb 24, 2026
203e714
adding the requested comments
grantnelson-wf Feb 24, 2026
51188b7
fixing spelling
grantnelson-wf Feb 24, 2026
6f1821c
Simplifying Tag reading
grantnelson-wf Feb 24, 2026
8c86d32
Updating the godebug link
grantnelson-wf Feb 24, 2026
c0d7b4f
Merge branch 'someLinkUpdates' of github.com:/Workiva/gopherjs into r…
grantnelson-wf Feb 24, 2026
1d22264
Merge branch 'reflectUpdates' of github.com:/Workiva/gopherjs into re…
grantnelson-wf Feb 24, 2026
783fc8c
Merge branch 'go1.21' of github.com:/gopherjs/gopherjs into reflectli…
grantnelson-wf Mar 2, 2026
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
14 changes: 13 additions & 1 deletion compiler/errlist/errlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package errlist
import (
"errors"
"fmt"
"strconv"
"strings"
)

// ErrTooManyErrors is added to the ErrorList by the Trim method.
Expand All @@ -15,7 +17,17 @@ func (errs ErrorList) Error() string {
if len(errs) == 0 {
return "<no errors>"
}
return fmt.Sprintf("%s (and %d more errors)", errs[0].Error(), len(errs[1:]))
// TODO(grantnelson-wf): Remove below and uncomment last line
if len(errs) == 1 {
return errs[0].Error()
}
width := len(strconv.Itoa(len(errs)))
buf := &strings.Builder{}
for i, err := range errs {
fmt.Fprintf(buf, "\n(%*d) %s", width, i, err.Error())
}
return buf.String()
// return fmt.Sprintf("%s (and %d more errors)", errs[0].Error(), len(errs[1:]))
}

// ErrOrNil returns nil if ErrorList is empty, or the error otherwise.
Expand Down
6 changes: 3 additions & 3 deletions tests/linkname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestLinknameMethods(t *testing.T) {
}

type (
name struct{ bytes *byte }
name struct{ Bytes *byte }
nameOff int32
rtype struct{}
)
Expand All @@ -51,7 +51,7 @@ func rtype_nameOff(r *rtype, off nameOff) name
//go:linkname newName reflect.newName
func newName(n, tag string, exported bool) name

//go:linkname name_name reflect.name.name
//go:linkname name_name internal/abi.Name.Name
func name_name(name) string

//go:linkname resolveReflectName reflect.resolveReflectName
Expand All @@ -62,6 +62,6 @@ func TestLinknameReflectName(t *testing.T) {
off := resolveReflectName(newName(info, "", false))
n := rtype_nameOff(nil, off)
if s := name_name(n); s != info {
t.Fatalf("to reflect.name got %q: want %q", s, info)
t.Fatalf("to reflect's abi.Name got %q: want %q", s, info)
}
}
Loading