| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 2067288a202f1421aa5c5a15b35972b94df5e493..3a72b360fb7fefcb17f218b2e8ca16ae14369d13 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -1061,7 +1061,7 @@ void Template::Set(v8::Local<Name> name, v8::Local<Data> value,
|
| auto value_obj = Utils::OpenHandle(*value);
|
| CHECK(!value_obj->IsJSReceiver() || value_obj->IsTemplateInfo());
|
| if (value_obj->IsObjectTemplateInfo()) {
|
| - templ->set_serial_number(i::Smi::kZero);
|
| + templ->set_serial_number(i::Smi::FromInt(0));
|
| if (templ->IsFunctionTemplateInfo()) {
|
| i::Handle<i::FunctionTemplateInfo>::cast(templ)->set_do_not_cache(true);
|
| }
|
| @@ -1395,7 +1395,7 @@ static Local<ObjectTemplate> ObjectTemplateNew(
|
| obj->set_serial_number(i::Smi::FromInt(next_serial_number));
|
| if (!constructor.IsEmpty())
|
| obj->set_constructor(*Utils::OpenHandle(*constructor));
|
| - obj->set_data(i::Smi::kZero);
|
| + obj->set_data(i::Smi::FromInt(0));
|
| return Utils::ToLocal(obj);
|
| }
|
|
|
|
|