Fix snapshot bug. (#267)

This commit is contained in:
Ryan Dahl 2018-06-18 15:55:36 +02:00 committed by GitHub
parent e6f51fd458
commit 064d889af0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View file

@ -67,3 +67,11 @@ function DoubleSubFails() {
deno.sub((channel, msg) => assert(false));
deno.sub((channel, msg) => assert(false));
}
// The following join has caused SnapshotBug to segfault when using kKeep.
[].join("");
function SnapshotBug() {
assert("1,2,3" === String([1, 2, 3]));
}