1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 14:27:59 +01:00

Some minor fixes, and add ctypes support to iter().

--HG--
branch : mode-refactoring
This commit is contained in:
Kris Maglione
2010-10-07 23:18:09 -04:00
parent 76e331afea
commit 248c906e9c
4 changed files with 45 additions and 23 deletions

View File

@@ -345,13 +345,15 @@ lookup:
dactyl.helpInitialized = false;
}
catch (e) {
if (isString(e))
e = { message: e };
let err = new Error();
for (let [k, v] in Iterator(e))
err[k] = v;
err.echoerr = <>{file.path}:{e.lineNumber}: {e}</>;
throw err;
if (e.fileName)
try {
e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, "");
if (e.fileName == uri.spec)
e.fileName = filename;
e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>
}
catch (e) {}
throw e;
}
}
else if (/\.css$/.test(filename))