Commit 12e1b959 authored by yangguo's avatar yangguo Committed by Commit bot

Fix NewStringRangeError failure due to failing malloc.

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/912333002

Cr-Commit-Position: refs/heads/master@{#26575}
parent 8aae1b30
......@@ -21923,6 +21923,7 @@ TEST(NewStringRangeError) {
const int length = i::String::kMaxLength + 1;
const int buffer_size = length * sizeof(uint16_t);
void* buffer = malloc(buffer_size);
if (buffer == NULL) return;
memset(buffer, 'A', buffer_size);
{
v8::TryCatch try_catch;
......
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