summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/epoch/src/epoch.coffee
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:59 +0000
commitbe05184b2324848b4f33e6e5d9c716bc95f581f3 (patch)
tree4da6fcfe204d1694377e90c44b02f1b0790aabe8 /debian/missing-sources/epoch/src/epoch.coffee
parentAdding upstream version 5.3.1. (diff)
downloadknot-resolver-debian.tar.xz
knot-resolver-debian.zip
Adding debian version 5.3.1-1+deb11u1.debian/5.3.1-1+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/missing-sources/epoch/src/epoch.coffee')
-rw-r--r--debian/missing-sources/epoch/src/epoch.coffee17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/missing-sources/epoch/src/epoch.coffee b/debian/missing-sources/epoch/src/epoch.coffee
new file mode 100644
index 0000000..b2d06ca
--- /dev/null
+++ b/debian/missing-sources/epoch/src/epoch.coffee
@@ -0,0 +1,17 @@
+window.Epoch ?= {}
+window.Epoch.Chart ?= {}
+window.Epoch.Time ?= {}
+window.Epoch.Util ?= {}
+window.Epoch.Formats ?= {}
+
+# Sends a warning to the developer console with the given message.
+# @param [String] msg Message for the warning.
+Epoch.warn = (msg) ->
+ (console.warn or console.log)("Epoch Warning: #{msg}")
+
+# Raises an exception with the given message (with the 'Epoch Error:' preamble).
+# @param [String] msg Specific message for the exception.
+Epoch.exception = (msg) ->
+ throw "Epoch Error: #{msg}"
+
+# "I think, baby, I was born just a little late!" -- Middle Class Rut