Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/compat.js

Issue 10213003: Make JsEngine::Evaluate() return a wrapper for v8::Value to accessdifferent variable types easily (Closed)
Patch Set: Extended JsValue API to support all FilterEngine functions Created April 13, 2013, 8:42 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/api.js ('k') | libadblockplus.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compat.js
===================================================================
--- a/lib/compat.js
+++ b/lib/compat.js
@@ -11,20 +11,19 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
// TODO: These need to be defined properly
+var window = this;
function XMLHttpRequest() {};
-var window = {
- requestFileSystem: function(){}
-};
+function requestFileSystem() {};
//
// Module framework stuff
//
function require(module)
{
return require.scopes[module];
@@ -258,17 +257,17 @@ FakeTimer.prototype =
{
this.callback = callback;
this.delay = delay;
this.scheduleTimeout();
},
scheduleTimeout: function()
{
var me = this;
- window.setTimeout(function()
+ setTimeout(function()
{
try
{
me.callback();
}
catch(e)
{
Cu.reportError(e);
« no previous file with comments | « lib/api.js ('k') | libadblockplus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld