Commit 88eb0609 authored by antonm@chromium.org's avatar antonm@chromium.org

Fix Win64 build with VS2008.

strlen returns size_t and VS2008 is now pretty picky about that.

Review URL: http://codereview.chromium.org/3384019

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5506 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0dece535
......@@ -156,7 +156,7 @@ TEST(ScanHTMLEndComments) {
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 @@ TEST(Preparsing) {
"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);
......
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