Reviewers: Rico,
Description:
Make extensions in different tests have different names.
In the threaded test, they influenced each other.
Please review this at http://codereview.chromium.org/7244001/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M test/cctest/test-api.cc
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index
de2c203b8a9e2a8b878b2e50e27d577e15a06299..bcea16f3e9e72f97ca7fc798694c4252a95c49cb
100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -4195,7 +4195,7 @@ THREADED_TEST(NativeFunctionDeclaration) {
THREADED_TEST(NativeFunctionDeclarationError) {
v8::HandleScope handle_scope;
- const char* name = "nativedecl";
+ const char* name = "nativedeclerr";
// Syntax error in extension code.
v8::RegisterExtension(new NativeFunctionExtension(name,
"native\nfunction
foo();"));
@@ -4207,7 +4207,7 @@ THREADED_TEST(NativeFunctionDeclarationError) {
THREADED_TEST(NativeFunctionDeclarationErrorEscape) {
v8::HandleScope handle_scope;
- const char* name = "nativedecl";
+ const char* name = "nativedeclerresc";
// Syntax error in extension code - escape code in "native" means that
// it's not treated as a keyword.
v8::RegisterExtension(new NativeFunctionExtension(
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev