From ffd4f4e594712017a0fa50dc64ae45b507de1aa6 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 1 Mar 2008 19:05:20 +0000
Subject: [PATCH] Use barfitty.barf.barf() instead of new Error() so the
 pathName is included in the error object for JS 1.5 (used in Win32 builds)

---
 xtrn/dgnlance/dgnlance.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xtrn/dgnlance/dgnlance.js b/xtrn/dgnlance/dgnlance.js
index b43e86b872..5412bf42d2 100644
--- a/xtrn/dgnlance/dgnlance.js
+++ b/xtrn/dgnlance/dgnlance.js
@@ -1,5 +1,5 @@
 var startup_path='.';
-try { throw new Error() } catch(e) { startup_path=e.fileName }
+try { throw barfitty.bar.barf() } catch(e) { startup_path=e.fileName }
 startup_path=startup_path.replace(/\/[^\/]*$/,'');
 startup_path=backslash(startup_path);
 
-- 
GitLab