Skip to content

Commit 2587a1c

Browse files
committed
Address remaining code review comments.
1 parent 0eb9389 commit 2587a1c

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

circle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,4 @@ test:
128128
unicode/utf16
129129
unicode/utf8
130130
- go test -v -race ./...
131+
- gopherjs test -v --minify fmt # Minification should work.

compiler/natives/src/os/signal/signal.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package signal
44

55
// Package signal is not implemented for GOARCH=js.
6-
// TODO: Implement if possible.
76

87
func signal_disable(uint32) {}
98
func signal_enable(uint32) {}

compiler/natives/src/reflect/reflect.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ func makechan(typ *rtype, size uint64) (ch unsafe.Pointer) {
497497
}
498498

499499
func makemap(t *rtype, cap int) (m unsafe.Pointer) {
500-
// TODO: Use cap if needed/possible.
501500
return unsafe.Pointer(js.Global.Get("Object").New().Unsafe())
502501
}
503502

compiler/natives/src/sync/sync.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ func runtime_Semacquire(s *uint32) {
2020
// TODO: Investigate this. If it's possible to implement, consider doing so, otherwise remove this comment.
2121
func runtime_SemacquireMutex(s *uint32, lifo bool) {
2222
// TODO: Use lifo if needed/possible.
23-
if *s == 0 {
24-
ch := make(chan bool)
25-
semWaiters[s] = append(semWaiters[s], ch)
26-
<-ch
27-
}
28-
*s--
23+
runtime_Semacquire(s)
2924
}
3025

3126
func runtime_Semrelease(s *uint32, handoff bool) {

compiler/natives/src/testing/testing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package testing
44

55
func callerName(skip int) string {
66
// TODO: Implement if possible.
7-
return "caller"
7+
return "<unknown>"
88
}

0 commit comments

Comments
 (0)