[webkit-help] Trouble figuring out JavaScriptCore way of getting into this JavaScript code

Alexey Proskuryakov ap at webkit.org
Sat Jul 3 22:52:04 PDT 2010


03.07.2010, в 21:45, Dan Wood написал(а):

> What's strange is that if I don't define window={} as you did, and just load the file wish jsc, I get the following error:
> 
> Exception: ReferenceError: Can't find variable: window
> 
> Um, is this what I would expect?  Isn't the javascript 'undefined' type exactly for this kind of purpose?  Do I need to pre-define "window" as an undefined object somehow?
> 
> Or maybe where it's failing is in line 8 of the file where it's referencing window somehow?


It does seem worth it to verify that less.js is already expected to support this mode of operation via whatever support channels exist for this project.

- WBR, Alexey Proskuryakov



More information about the webkit-help mailing list