Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Medium
New issue 1589 by [email protected]: [Debugger] properties of a host
object (HTML5 localStorage) are incorrecly enumerated
http://code.google.com/p/v8/issues/detail?id=1589
- Start Chrome browser with remote Eclipse debugger
http://code.google.com/p/chromedevtools/
(command line: chrome --remote-shell-port=<port>)
- add a property to local storage (i.e. window.localStorage):
localStorage.setItem("foo", "bar")
- on breakpoint get localStorage in a Variables or Expressions view and
expand its properties
expected:
property "foo" is shown with "bar" value
actual:
property "foo" is shown with value 'undefined'
V8 debug protocol does return "undefined":
{"seq":44,"request_seq":32,"type":"response","command":"evaluate","success":true,"body":{"handle":36,"type":"object","className":"Storage","constructorFunction":{"ref":2,"type":"undefined"},
... ,"namedInterceptor":true,"indexedInterceptor":true,"properties":[{"name":"length","value":{"ref":2,"type":"undefined"}},{"name":"foo
","value":{"ref":2,"type":"undefined"}}],"text":"#<Storage>"},"refs":[{"handle":2,"type":"undefined","text":"undefined"}
],"running":false}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev