There is a conceptual difference between the engines: JSC: typeof Document === "object" V8: typeof Document === "function" As a result, getting the class names using same code is challenging. I gave up and made a fork.
Created attachment 55385 [details] [PATCH] Proposed fix.
Comment on attachment 55385 [details] [PATCH] Proposed fix. Should we file a bug with V8 or JSC?
(In reply to comment #2) > (From update of attachment 55385 [details]) > Should we file a bug with V8 or JSC? I am afraid teams are not interested in fixing it one way or the other - we are the only clients suffering so far. I'll follow up with the V8 folks locally.
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/front-end/InjectedScript.js Committed r58953