Actually copy from the flate decoder's history.

This commit is contained in:
Nigel Tao committed 2017-10-13 14:50:34 +11:00
1 parent 4357c22e91
commit c99fdaf63d
11 files changed
+289 -120

No files matched your search

+1
View File
@@ -604,6 +604,7 @@ func isInSrc(tm *t.Map, n *a.Expr, methodName t.Key, nArgs int) bool {
func isInDst(tm *t.Map, n *a.Expr, methodName t.Key, nArgs int) bool {
callSuspendible := methodName != t.KeyCopyFromReader32 &&
methodName != t.KeyCopyFromHistory32 &&
methodName != t.KeyCopyFromSlice32 &&
methodName != t.KeyCopyFromSlice &&
methodName != t.KeySlice
// TODO: check that n.Args() is "(x:bar)".