Skip to content

Commit f7183f9

Browse files
authored
Merge pull request #1064 from nevkontakte/wip-go1.17
Resolve the two remaining gorepo test failures.
2 parents 8b97c5a + a0dbb0e commit f7183f9

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

compiler/prelude/prelude_min.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/prelude/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ var $Float64 = $newType( 8, $kindFloat64, "float64", true, ""
482482
var $Complex64 = $newType( 8, $kindComplex64, "complex64", true, "", false, null);
483483
var $Complex128 = $newType(16, $kindComplex128, "complex128", true, "", false, null);
484484
var $String = $newType( 8, $kindString, "string", true, "", false, null);
485-
var $UnsafePointer = $newType( 4, $kindUnsafePointer, "unsafe.Pointer", true, "", false, null);
485+
var $UnsafePointer = $newType( 4, $kindUnsafePointer, "unsafe.Pointer", true, "unsafe", false, null);
486486
487487
var $nativeArray = function(elemKind) {
488488
switch (elemKind) {

compiler/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (fc *funcContext) translateSelection(sel selection, pos token.Pos) ([]strin
145145
var fields []string
146146
t := sel.Recv()
147147
for _, index := range sel.Index() {
148-
if ptr, isPtr := t.(*types.Pointer); isPtr {
148+
if ptr, isPtr := t.Underlying().(*types.Pointer); isPtr {
149149
t = ptr.Elem()
150150
}
151151
s := t.Underlying().(*types.Struct)

tests/gorepo/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ var knownFails = map[string]failReason{
147147
"fixedbugs/issue5493.go": {category: notApplicable, desc: "GC related, not relevant to GopherJS"},
148148
"fixedbugs/issue46725.go": {category: notApplicable, desc: "GC related, not relevant to GopherJS"},
149149
"fixedbugs/issue43444.go": {category: lowLevelRuntimeDifference, desc: "GopherJS println format is different from Go's"},
150+
"fixedbugs/issue23017.go": {desc: "https://github.com/gopherjs/gopherjs/issues/1063"},
150151
}
151152

152153
type failCategory uint8

0 commit comments

Comments
 (0)