A refinement of cl 28068.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1352 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ad7ad5cf
......@@ -6953,8 +6953,9 @@ Object* Dictionary::TransformPropertiesToFastFor(JSObject* obj,
void Script::InitLineEnds() {
if (!line_ends()->IsUndefined()) return;
if (source()->IsUndefined()) {
set_line_ends(*(Factory::NewArrayLiteral(0)));
if (!source()->IsString()) {
ASSERT(source()->IsUndefined());
set_line_ends(*(Factory::NewJSArray(0)));
ASSERT(line_ends()->IsJSArray());
return;
}
......
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