1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 05:57:58 +01:00

add liberator.eval()

This commit is contained in:
Doug Kearns
2008-09-01 03:06:29 +00:00
parent aa687a20a7
commit f76d0c3ccd
3 changed files with 13 additions and 9 deletions

View File

@@ -659,7 +659,7 @@ lookup:
// handle pure javascript files specially
if (/\.js$/.test(filename))
{
eval("with (liberator) {" + str + "}");
liberator.eval(str);
}
else
{
@@ -671,7 +671,7 @@ lookup:
{
if (heredocEnd.test(line))
{
eval("with (liberator) {" + heredoc + "}");
liberator.eval(heredoc);
heredoc = "";
heredocEnd = null;
}