Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index fea7ac16fa1b6a9719233968039185006856ca09..2a41355c67231f37335d9dea138b31fa716e6162 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1392,8 +1392,9 @@ void Genesis::InitializeExperimentalGlobal() { |
Handle<AccessorPair> poison_pair(factory()->NewAccessorPair()); |
PropertyAttributes rw_attribs = |
static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE); |
- poison_pair->set_getter(*GetGeneratorPoisonFunction()); |
- poison_pair->set_setter(*GetGeneratorPoisonFunction()); |
+ Handle<JSFunction> poison_function = GetGeneratorPoisonFunction(); |
+ poison_pair->set_getter(*poison_function); |
+ poison_pair->set_setter(*poison_function); |
ReplaceAccessors(generator_function_map, factory()->arguments_string(), |
rw_attribs, poison_pair); |
ReplaceAccessors(generator_function_map, factory()->caller_string(), |