Commit f2bd9431 authored by alph@chromium.org's avatar alph@chromium.org

Fix Windows build

TBR=jkummerow

Review URL: https://codereview.appspot.com/7790043

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13937 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1afc70a3
......@@ -1762,10 +1762,10 @@ TEST(ManyLocalsInSharedContext) {
// Check all the objects have got their names.
// ... well check just every 8th because otherwise it's too slow in debug.
for (int i = 0; i < num_objects - 1; i += 8) {
char var_name[100];
snprintf(var_name, sizeof(var_name), "f_%d", i);
i::EmbeddedVector<char, 100> var_name;
i::OS::SNPrintF(var_name, "f_%d", i);
const v8::HeapGraphNode* f_object = GetProperty(
context_object, v8::HeapGraphEdge::kContextVariable, var_name);
context_object, v8::HeapGraphEdge::kContextVariable, var_name.start());
CHECK_NE(NULL, f_object);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment