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

Dan Wood dw43031apple at karelia.com
Mon Jul 5 21:05:23 PDT 2010

Yes, I've verified that it's intended to be used stand-alone.

What I"m worried about is the strange behavior here and in the previous messages here, where the results of evaluating with jsc and from the Cocoa APIs seem to produce such different results.  

Should I file a bug on these anomalies on webkit.org?   Or are there some diagnostics that I haven't figured out how to use yet?

On Jul 3, 2010, at 10:52 PM, Alexey Proskuryakov wrote:

> 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

Dan Wood
Twitter: http://twitter.com/danwood

Karelia Software — Sandvox for the Mac

When the government fears the people, there is liberty.  When the people fear the government, there is tyranny. — Thomas Jefferson

More information about the webkit-help mailing list