Ensure we enable/disable the bootstrapping flag
authorToon Verwaest <verwaest@chromium.org>
Wed, 1 Jul 2015 15:39:09 +0000 (17:39 +0200)
committerToon Verwaest <verwaest@chromium.org>
Wed, 1 Jul 2015 15:39:28 +0000 (15:39 +0000)
TBR=jkummerow@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29424}

test/cctest/test-api-interceptors.cc

index 161eb0c7c471640e4e0b7b4c785f7292f2457a12..ce30a18b5688e2ff7e95de985f725ce6c39ef103 100644 (file)
@@ -1007,7 +1007,7 @@ THREADED_TEST(PropertyHandlerInPrototype) {
 }
 
 
-bool is_bootstrapping = true;
+bool is_bootstrapping = false;
 static void PrePropertyHandlerGet(
     Local<Name> key, const v8::PropertyCallbackInfo<v8::Value>& info) {
   ApiTestFuzzer::Fuzz();
@@ -2604,7 +2604,9 @@ THREADED_TEST(InterceptorICGetterExceptions) {
   // Generous limit for bootstrapping.
   templ->SetHandler(
       v8::NamedPropertyHandlerConfiguration(InterceptorICExceptionGetter));
+  is_bootstrapping = true;
   LocalContext context(0, templ, v8::Handle<Value>());
+  is_bootstrapping = false;
   call_ic_function3 = v8_compile("function h(x) { return x; }; h")->Run();
   v8::Handle<Value> value = CompileRun(
       "function f() {"