aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-22 21:22:20 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-22 21:29:35 +1000
commitc0cb496af1f9901de323563e4efcc3a4f41c8f7a (patch)
tree21c8f7d7422f0dddba560de4ab0dd8c1b738ca7c /src
parent421b243fb88673709386661f6fb053ecef9e56e2 (diff)
downloadfengari-c0cb496af1f9901de323563e4efcc3a4f41c8f7a.tar.gz
fengari-c0cb496af1f9901de323563e4efcc3a4f41c8f7a.tar.bz2
fengari-c0cb496af1f9901de323563e4efcc3a4f41c8f7a.zip
src/loslib.js: Remove unreachable branch
Diffstat (limited to 'src')
-rw-r--r--src/loslib.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/loslib.js b/src/loslib.js
index 89b5399..854719a 100644
--- a/src/loslib.js
+++ b/src/loslib.js
@@ -131,9 +131,6 @@ const os_date = function(L) {
utc = true;
i++; /* skip '!' */
}
-
- if (stm === null) /* invalid date? */
- luaL_error(L, to_luastring("time result cannot be represented in this installation"));
if (s[i] === "*".charCodeAt(0) && s[i+1] === "t".charCodeAt(0)) {
lua_createtable(L, 0, 9); /* 9 = number of fields */
setallfields(L, stm, utc);