Commit 65006b85 authored by vogelheim's avatar vogelheim Committed by Commit bot

Fix mirror-script and debug-script tests when using external natives.

R=yangguo
BUG=

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

Cr-Commit-Position: refs/heads/master@{#25752}
parent 0f9d98e0
......@@ -87,6 +87,10 @@ class NativesStore {
builder.AddString("native ");
builder.AddSubstring(reinterpret_cast<const char*>(id), id_length);
builder.AddString(".js");
builder.Finalize();
// SimpleStringBuilder wants zero-byte; the caller does not.
DCHECK(name[name.length() - 1] == '\0');
name.Truncate(name.length() - 1);
return Vector<const char>::cast(name);
}
......
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