Commit bfbda9c8 authored by ager@chromium.org's avatar ager@chromium.org

Fix an unsound use of a string shape in the parser.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1114 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4e1713e8
......@@ -1119,7 +1119,7 @@ FunctionLiteral* Parser::ParseProgram(Handle<String> source,
temp_scope.materialized_literal_count(),
temp_scope.contains_array_literal(),
temp_scope.expected_property_count(),
0, 0, source->length(shape), false));
0, 0, source->length(), false));
} else if (scanner().stack_overflow()) {
Top::StackOverflow();
}
......
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