diff options
Diffstat (limited to 'core/encode_decode_test.js')
-rw-r--r-- | core/encode_decode_test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/encode_decode_test.js b/core/encode_decode_test.js index bbb52252e..b8a142ac5 100644 --- a/core/encode_decode_test.js +++ b/core/encode_decode_test.js @@ -1,4 +1,9 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +function assert(cond) { + if (!cond) { + throw Error("assert"); + } +} function assertArrayEquals(a1, a2) { if (a1.length !== a2.length) throw Error("assert"); |