Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add Go 1.18 support #1116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 51 commits into from
Aug 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
98cf52b
Update 1.17 to 1.18
flimzy Apr 19, 2022
734756f
Add hacked JS files for goarch
flimzy Apr 19, 2022
75a2a4a
Update vfs
flimzy Apr 19, 2022
3a89f97
More stdlib updates
flimzy Apr 19, 2022
f754ef8
Update dependencies
flimzy Apr 19, 2022
42a2672
Ignore go:linkname directives in the `internal/fuzz` package.
nevkontakte May 30, 2022
40a9a9c
Pass an empty list of fuzz targets into the test main function.
nevkontakte May 30, 2022
dafed76
Restore mapiterinit(), mapiterkey(), mapiterelem() and mapiternext().
nevkontakte May 30, 2022
76289a7
Update VFS.
nevkontakte May 30, 2022
24891eb
Provide stubs for the string-optimized map accessors in the reflect pkg.
nevkontakte Jun 4, 2022
69c7cf6
Fix conversion from a slice to a pointer to a shorter array.
nevkontakte Jun 4, 2022
7b2b95a
Make `internal/intern` unsupported and avoid its usage in `net/netip`.
nevkontakte Jun 4, 2022
8cc14eb
strings: support Clone() function
nevkontakte Jun 4, 2022
5b30828
Use the actual NaN value in the `math` package.
nevkontakte Jun 5, 2022
243b1a4
Capture package name when unexpected compiler panic happens.
nevkontakte Jun 5, 2022
bc985d1
Improve compiler panic message.
nevkontakte Jun 5, 2022
7dcf6bb
Temporarily exclude encoding/xml from the test set.
nevkontakte Jun 5, 2022
2f017d3
net/http: fix renamed variable
nevkontakte Jun 5, 2022
28ce160
Update embedded VFS and minified prelude.
nevkontakte Jun 7, 2022
6d4ada3
Merge pull request #1120 from nevkontakte/go1.18
nevkontakte Jun 10, 2022
2bf901a
Use Function.prototype.bind() in $methodVal in prelude.
nevkontakte Jun 10, 2022
c3fd450
runtime: Filter call stack returned by `Callers()` and `Caller()`.
nevkontakte Jun 10, 2022
dfcddff
reflect: Skip memory allocation test in TestMapIterSet.
nevkontakte Jun 10, 2022
844c5db
runtime: Include call column into position key, in addition to line.
nevkontakte Jul 9, 2022
d8f1734
Update VFS and minified prelude.
nevkontakte Jul 9, 2022
aa9b527
reflect: Fix test failures introduced in Go 1.18.
nevkontakte Jul 10, 2022
58edd7e
Update VFS.
nevkontakte Jul 10, 2022
fe457d0
Merge pull request #1125 from nevkontakte/go1.18
nevkontakte Jul 21, 2022
9c7b3f9
Skip 3 gorepo tests that attempt to pass unsupported flags:
nevkontakte Jul 16, 2022
8af68a2
Mark fixedbugs/issue15975.go as passing again.
nevkontakte Jul 16, 2022
6d8aaec
Allow multiple "_" fields in `reflect.StructOf()`.
nevkontakte Jul 16, 2022
62b3001
Update VFS.
nevkontakte Jul 16, 2022
68505dc
Skip fixedbugs/issue48898.go
nevkontakte Jul 17, 2022
d92466f
Skip fixedbugs/issue48536.go, which uses `unsafe.Add()`.
nevkontakte Jul 21, 2022
405ff02
Merge pull request #1131 from nevkontakte/go1.18
nevkontakte Jul 27, 2022
4845bda
Refactor test functions finding into a separate package and add tests.
nevkontakte Jul 30, 2022
b19a3f1
Detect and execute Fuzz targets with seed inputs.
nevkontakte Jul 30, 2022
f13b14b
Fix generics-related error in net/netip fuzz tests.
nevkontakte Jul 31, 2022
2db03cc
Update VFS.
nevkontakte Jul 31, 2022
6ca1089
Merge pull request #1132 from nevkontakte/go1.18
nevkontakte Aug 1, 2022
4380695
Yield explicit errors when encountering typeparams.
nevkontakte Jul 31, 2022
c53e22e
Update VFS.
nevkontakte Jul 31, 2022
dbb7643
Remove obsolete overlay.
nevkontakte Jul 31, 2022
3dee60c
Update VFS.
nevkontakte Jul 31, 2022
f3f9c18
Remove `Wrapper` interface from `syscall/js`.
nevkontakte Jul 31, 2022
0dcf12e
Update VFS.
nevkontakte Jul 31, 2022
671ed99
Update upstream Go version to 1.18.4.
nevkontakte Jul 31, 2022
45af5f0
go/parser: skip TestParseDepthLimit test, which triggers stack overflow.
nevkontakte Jul 31, 2022
b9d9b53
Update VFS
nevkontakte Jul 31, 2022
918cc1e
Add fixedbugs/issue53600.go to known failures.
nevkontakte Aug 1, 2022
7736106
Merge pull request #1133 from nevkontakte/go1.18
nevkontakte Aug 1, 2022
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
More stdlib updates
  • Loading branch information
flimzy authored and nevkontakte committed May 30, 2022
commit 3a89f97e2389bd5c63859da67dc188688bc5bb9d
18 changes: 9 additions & 9 deletions 18 compiler/natives/fs_vfsdata.go

Large diffs are not rendered by default.

55 changes: 7 additions & 48 deletions 55 compiler/natives/src/reflect/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ package reflect

import (
"errors"
"internal/itoa"
"strconv"
"unsafe"

"internal/itoa"

"github.com/gopherjs/gopherjs/js"
)

Expand Down Expand Up @@ -682,58 +683,16 @@ func (iter *mapIter) skipUntilValidKey() {
}
}

func mapiterinit(t *rtype, m unsafe.Pointer) unsafe.Pointer {
func mapiterinit(t *rtype, m unsafe.Pointer, _ *hiter) unsafe.Pointer {
return unsafe.Pointer(&mapIter{t, js.InternalObject(m), js.Global.Call("$keys", js.InternalObject(m)), 0, nil})
}

func mapiterkey(it unsafe.Pointer) unsafe.Pointer {
iter := (*mapIter)(it)
var kv *js.Object
if iter.last != nil {
kv = iter.last
} else {
iter.skipUntilValidKey()
if iter.i == iter.keys.Length() {
return nil
}
k := iter.keys.Index(iter.i)
kv = iter.m.Get(k.String())

// Record the key-value pair for later accesses.
iter.last = kv
}
return unsafe.Pointer(js.Global.Call("$newDataPointer", kv.Get("k"), jsType(PtrTo(iter.t.Key()))).Unsafe())
}

func mapiterelem(it unsafe.Pointer) unsafe.Pointer {
iter := (*mapIter)(it)
var kv *js.Object
if iter.last != nil {
kv = iter.last
} else {
iter.skipUntilValidKey()
if iter.i == iter.keys.Length() {
return nil
}
k := iter.keys.Index(iter.i)
kv = iter.m.Get(k.String())
iter.last = kv
}
return unsafe.Pointer(js.Global.Call("$newDataPointer", kv.Get("v"), jsType(PtrTo(iter.t.Elem()))).Unsafe())
}

func mapiternext(it unsafe.Pointer) {
iter := (*mapIter)(it)
iter.last = nil
iter.i++
}

func maplen(m unsafe.Pointer) int {
return js.Global.Call("$keys", js.InternalObject(m)).Length()
}

func cvtDirect(v Value, typ Type) Value {
var srcVal = v.object()
srcVal := v.object()
if srcVal == jsType(v.typ).Get("nil") {
return makeValue(typ, jsType(typ).Get("nil"), v.flag)
}
Expand Down Expand Up @@ -1649,7 +1608,7 @@ func deepValueEqualJs(v1, v2 Value, visited [][2]unsafe.Pointer) bool {
return true
}
}
var n = v1.Len()
n := v1.Len()
if n != v2.Len() {
return false
}
Expand All @@ -1667,7 +1626,7 @@ func deepValueEqualJs(v1, v2 Value, visited [][2]unsafe.Pointer) bool {
case Ptr:
return deepValueEqualJs(v1.Elem(), v2.Elem(), visited)
case Struct:
var n = v1.NumField()
n := v1.NumField()
for i := 0; i < n; i++ {
if !deepValueEqualJs(v1.Field(i), v2.Field(i), visited) {
return false
Expand All @@ -1681,7 +1640,7 @@ func deepValueEqualJs(v1, v2 Value, visited [][2]unsafe.Pointer) bool {
if v1.object() == v2.object() {
return true
}
var keys = v1.MapKeys()
keys := v1.MapKeys()
if len(keys) != v2.Len() {
return false
}
Expand Down
3 changes: 2 additions & 1 deletion 3 compiler/natives/src/sync/waitgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ type WaitGroup struct {
counter int
ch chan struct{}

state1 [3]uint32
state1 uint64
state2 uint32
}

func (wg *WaitGroup) Add(delta int) {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.