[Webkit-unassigned] [Bug 79555] JSString::resolveRope() should report extra memory cost to heap

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 28 14:45:17 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=79555





--- Comment #13 from Yong Li <yong.li.webkit at gmail.com>  2012-02-28 14:45:16 PST ---
(In reply to comment #11)
> Reopen, because it broke fast/events/dispatch-message-string-data.html on Qt and on GTK: 
> 
> --- /ramdisk/qt-linux-64-release/build/layout-test-results/fast/events/dispatch-message-string-data-expected.txt 
> +++ /ramdisk/qt-linux-64-release/build/layout-test-results/fast/events/dispatch-message-string-data-actual.txt 
> @@ -1,4 +1,5 @@
>  This is a test for https://bugs.webkit.org/show_bug.cgi?id=71229 (V8MessageEvent::dataAccessorGetter does not return a reference to its caller). If it succeeds, DONE will appear below. If it fails, you should see messages containing unexpected strings that were received and/or a renderer crash.
> 
>  DONE
> +Expected '818', Got: 'Hello...


It is 1024 "Hello"s + 808.

The JS:

var kPrefix = "Hello";
for (var i = 0; i < 10; ++i)
    kPrefix += kPrefix;

2^10 = 1024

    if (message_event.data !== kPrefix + num.toString()) {
        log("Expected '" + num + "', Got: '" + message_event.data + "'");
    }

So the message_event.data seems right.

what's "!=="? is it a supported operator in JS?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list