Index: LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js |
diff --git a/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js b/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js |
index e3b3ffff1e4f6f37cbca5af11a91ab2c3836d382..453f4b88aff67917754841d67dc49a7a3d663427 100644 |
--- a/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js |
+++ b/LayoutTests/inspector-protocol/heap-profiler/resources/heap-snapshot-common.js |
@@ -34,6 +34,8 @@ InspectorTest.takeHeapSnapshot = function(callback) |
{ |
var serializedSnapshot = chunks.join(""); |
var parsed = JSON.parse(serializedSnapshot); |
+ parsed.nodes = new Uint32Array(parsed.nodes); |
+ parsed.edges = new Uint32Array(parsed.edges); |
var snapshot = new WebInspector.JSHeapSnapshot(parsed, new WebInspector.HeapSnapshotProgress()); |
callback(snapshot); |
InspectorTest.log("SUCCESS: didGetHeapSnapshot"); |