Reviewers: rossberg,
Message:
Committed patchset #2 manually as r21650 (presubmit successful).
Description:
Fix leaky tests added by r21649.
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=21650
Please review this at https://codereview.chromium.org/313653002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+4, -0 lines):
M test/cctest/test-parsing.cc
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index
f6cf94eb72a29332719c06f6bf824da7b61aab91..533c6249ca9abee8dd498ffaf216a2c823554744
100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -2519,6 +2519,8 @@ TEST(FuncNameInferrerTwoByte) {
v8::Local<v8::String> expected_name =
v8::String::NewFromTwoByte(isolate, two_byte_name);
CHECK(result->Equals(expected_name));
+ i::DeleteArray(two_byte_source);
+ i::DeleteArray(two_byte_name);
}
@@ -2542,4 +2544,6 @@ TEST(FuncNameInferrerEscaped) {
v8::Local<v8::String> expected_name =
v8::String::NewFromTwoByte(isolate, two_byte_name);
CHECK(result->Equals(expected_name));
+ i::DeleteArray(two_byte_source);
+ i::DeleteArray(two_byte_name);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.