Status: New
Owner: ----

New issue 328 by Sean.Kang84: Retrieval of JS-Object's value
http://code.google.com/p/v8/issues/detail?id=328

I've tried to embed v8 into my application and find out this curious case
about value retrieval. I'll give it to you straightly with following
example.

     As you know there's document.location object in HTML DOM, NOT property.
And this can be accessed in two different ways(a & b)

      a. alert(document.location)

      b. alert(document.location.href)

     a and b give u the same result. It seems that retrieval of 'location
object' acts like retrieval of 'location.href property'.(in CHROME or
anything else)



Here's my question...'How this can be done in v8?'

In my implementation, alert(document.location) result in

  'Fatal error v8\src\handles-inl.h, line 48
   # CHECK(reinterpret_cast<Address>(*location_) != kHandleZapValue) failed'

that is, access to document.location(is internally Handle<Object>) as
'value'(string or int) is invalid!

I've inspected chronium's v8-binding(which works well with this case)

but only found 'location' is treated as Object and nothing specially for
this feature.

Any comments would be helpful and really appreciated!




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to