[webkit-dev] Adding read-only javascript properties via JavaScriptCore

2009-12-01 Thread Ryan Grimm
Hi, I'm using the JavaScriptCore (Mac) API to add some properties into the javascript environment and would like to make sure that these properties are read only from the javascript side. From the looks of the API, I thought adding the properties with calls like this would do the trick:

Re: [webkit-dev] Adding read-only javascript properties via JavaScriptCore

2009-12-01 Thread Adam Barth
This email seems like it would be better directed to webkit-help. In general, that's not possible to create read-only properties in JavaScript because the environment is so malleable. Adam On Tue, Dec 1, 2009 at 11:10 AM, Ryan Grimm gr...@xqdev.com wrote: Hi, I'm using the JavaScriptCore

Re: [webkit-dev] Adding read-only javascript properties via JavaScriptCore

2009-12-01 Thread Ryan Grimm
I'm sorry about that, I intended to send it to webkit-help but typed in the wrong address. --Ryan On Dec 1, 2009, at 11:15 AM, Adam Barth wrote: This email seems like it would be better directed to webkit-help. In general, that's not possible to create read-only properties in JavaScript

Re: [webkit-dev] Adding read-only javascript properties via JavaScriptCore

2009-12-01 Thread Geoffrey Garen
Sounds like a bug. Geoff On Dec 1, 2009, at 11:10 AM, Ryan Grimm wrote: Hi, I'm using the JavaScriptCore (Mac) API to add some properties into the javascript environment and would like to make sure that these properties are read only from the javascript side. From the looks of the API,

Re: [webkit-dev] Adding read-only javascript properties via JavaScriptCore

2009-12-01 Thread Ryan Grimm
Hi Geoff, So I take it that I'm understanding the API correctly? I'm currently using the WebKit framework bundled with the latest version of Safari. Should I go ahead and file a bug report? --Ryan On Dec 1, 2009, at 12:28 PM, Geoffrey Garen wrote: Sounds like a bug. Geoff On Dec 1,

Re: [webkit-dev] Adding read-only javascript properties via JavaScriptCore

2009-12-01 Thread Maciej Stachowiak
On Dec 1, 2009, at 2:01 PM, Ryan Grimm wrote: Hi Geoff, So I take it that I'm understanding the API correctly? I'm currently using the WebKit framework bundled with the latest version of Safari. Should I go ahead and file a bug report? Please do. Your understanding is correct, what