diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-18 15:55:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 15:55:36 +0200 |
commit | 064d889af05365b3d2051f0db800adc1ad977f3a (patch) | |
tree | 4e9cfb2cc9630fd32fb16dc4de4554a93cfa4b1d /deno2/js | |
parent | e6f51fd45820222cc2efea8478ad115b310e287a (diff) |
Fix snapshot bug. (#267)
Diffstat (limited to 'deno2/js')
-rw-r--r-- | deno2/js/mock_runtime.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deno2/js/mock_runtime.js b/deno2/js/mock_runtime.js index f16161cf7..f845dae20 100644 --- a/deno2/js/mock_runtime.js +++ b/deno2/js/mock_runtime.js @@ -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])); +} |