Revision: 5506
Author: [email protected]
Date: Wed Sep 22 06:24:14 2010
Log: Fix Win64 build with VS2008.
strlen returns size_t and VS2008 is now pretty picky about that.
Review URL: http://codereview.chromium.org/3384019
http://code.google.com/p/v8/source/detail?r=5506
Modified:
/branches/bleeding_edge/test/cctest/test-parsing.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-parsing.cc Tue Sep 7 05:52:16
2010
+++ /branches/bleeding_edge/test/cctest/test-parsing.cc Wed Sep 22 06:24:14
2010
@@ -156,7 +156,7 @@
for (int i = 0; tests[i]; i++) {
v8::ScriptData* data =
- v8::ScriptData::PreCompile(tests[i], strlen(tests[i]));
+ v8::ScriptData::PreCompile(tests[i], i::StrLength(tests[i]));
CHECK(data != NULL && !data->HasError());
delete data;
}
@@ -198,9 +198,9 @@
"var w = /RegExp Literal\\u0020With Escape/gin;"
"var y = { get getter() { return 42; }, "
" set setter(v) { this.value = v; }};";
- int source_length = strlen(source);
+ int source_length = i::StrLength(source);
const char* error_source = "var x = y z;";
- int error_source_length = strlen(error_source);
+ int error_source_length = i::StrLength(error_source);
v8::ScriptData* preparse =
v8::ScriptData::PreCompile(source, source_length);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev