From c0cb496af1f9901de323563e4efcc3a4f41c8f7a Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 22 Apr 2018 21:22:20 +1000 Subject: src/loslib.js: Remove unreachable branch --- src/loslib.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2