Index: test/cctest/test-api.cc |
=================================================================== |
--- test/cctest/test-api.cc (revision 10573) |
+++ test/cctest/test-api.cc (working copy) |
@@ -15558,10 +15558,12 @@ |
LocalContext context; |
// eval and the Function constructor allowed by default. |
+ CHECK(context->IsCodeGenerationFromStringsAllowed()); |
CheckCodeGenerationAllowed(); |
// Disallow eval and the Function constructor. |
context->AllowCodeGenerationFromStrings(false); |
+ CHECK(!context->IsCodeGenerationFromStringsAllowed()); |
CheckCodeGenerationDisallowed(); |
// Allow again. |
@@ -15571,10 +15573,12 @@ |
// Disallow but setting a global callback that will allow the calls. |
context->AllowCodeGenerationFromStrings(false); |
V8::SetAllowCodeGenerationFromStringsCallback(&CodeGenerationAllowed); |
+ CHECK(!context->IsCodeGenerationFromStringsAllowed()); |
CheckCodeGenerationAllowed(); |
// Set a callback that disallows the code generation. |
V8::SetAllowCodeGenerationFromStringsCallback(&CodeGenerationDisallowed); |
+ CHECK(!context->IsCodeGenerationFromStringsAllowed()); |
CheckCodeGenerationDisallowed(); |
} |