From 809575f8166b3e28aac1f807c7de52819a5001a8 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Sat, 27 Feb 2021 12:45:42 -0600 Subject: [PATCH] throw new err, white space on curlies --- nullboard.html | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/nullboard.html b/nullboard.html index 68a14a8..401e4dc 100644 --- a/nullboard.html +++ b/nullboard.html @@ -1217,23 +1217,24 @@ var nb_dataVersion = 20190412; class Database { - get(key) { - throw "abstract"; + get(key) + { + throw new Error("abstract"); } set(key) { - throw "abstract"; + throw new Error("abstract"); } del(key) { - throw "abstract"; + throw new Error("abstract"); } forEach(foo) { - throw "abstract"; + throw new Error("abstract"); } } @@ -1275,7 +1276,7 @@ super(); if (arguments.length < 1) { - throw "must supply at least one database"; + throw new Error("must supply at least one database"); } this.databases = []; for (var i=0; i