projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f9d98e
)
Fix mirror-script and debug-script tests when using external natives.
author
vogelheim
<vogelheim@chromium.org>
Wed, 10 Dec 2014 16:06:00 +0000
(08:06 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Wed, 10 Dec 2014 16:06:14 +0000
(16:06 +0000)
R=yangguo
BUG=
Review URL: https://codereview.chromium.org/
792733003
Cr-Commit-Position: refs/heads/master@{#25752}
src/natives-external.cc
patch
|
blob
|
history
diff --git
a/src/natives-external.cc
b/src/natives-external.cc
index
4312091
..
138abe1
100644
(file)
--- a/
src/natives-external.cc
+++ b/
src/natives-external.cc
@@
-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);
}