KJS merging; a question about eval on TOT
David Faure
faure at kde.org
Mon Feb 16 10:02:02 CET 2004
On Monday 16 February 2004 02:07, Darin Adler wrote:
> I'm doing a bit of work to merge with KJS; not rolling changes over
> exactly, but rather making JavaScriptCore match KJS entirely, except
> where there is a reason not to.
Great!
> But I can't seem to get "eval" to work with KJS tip of tree. The code
> to put it in the object prototype instead of the global object fails
> for me.
There must be a difference in your implementation of the global object then?
> For example, this fails:
>
> javascript:alert(eval('1'))
>
> but it works fine with older KJS. Do you see this in Konqueror too?
No, it works fine here.
(actual testcase: <script>alert(eval('1'))</script>)
> Are there eval tests in the test suite you guys are using for KJS?
Yes.
Do you have "testkjs"? If things work in testkjs but not in the browser
then it's a bug in the Window object.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Khtml-devel
mailing list