| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9962459 commit bf9a52c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -345,7 +345,8 @@ void HistogramBase::Initialize(IsolateData* isolate_data, | |||
| 345 | 345 | SetConstructorFunction(isolate_data->isolate(), | |
| 346 | 346 | target, | |
| 347 | 347 | "Histogram", | |
| 348 | - GetConstructorTemplate(isolate_data)); | ||
| 348 | + GetConstructorTemplate(isolate_data), | ||
| 349 | + SetConstructorFunctionFlag::NONE); | ||
| 349 | 350 | } | |
| 350 | 351 | ||
| 351 | 352 | BaseObjectPtr<BaseObject> HistogramBase::HistogramTransferData::Deserialize( | |
@@ -371,6 +372,7 @@ Local<FunctionTemplate> IntervalHistogram::GetConstructorTemplate( | |||
| 371 | 372 | Isolate* isolate = env->isolate(); | |
| 372 | 373 | tmpl = NewFunctionTemplate(isolate, nullptr); | |
| 373 | 374 | tmpl->Inherit(HandleWrap::GetConstructorTemplate(env)); | |
| 375 | + tmpl->SetClassName(OneByteString(isolate, "Histogram")); | ||
| 374 | 376 | tmpl->InstanceTemplate()->SetInternalFieldCount( | |
| 375 | 377 | HistogramBase::kInternalFieldCount); | |
| 376 | 378 | SetProtoMethodNoSideEffect(isolate, tmpl, "count", GetCount); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1496,13 +1496,16 @@ static void InitMessaging(Local<Object> target, | |||
| 1496 | 1496 | NewFunctionTemplate(isolate, JSTransferable::New); | |
| 1497 | 1497 | t->InstanceTemplate()->SetInternalFieldCount( | |
| 1498 | 1498 | JSTransferable::kInternalFieldCount); | |
| 1499 | - SetConstructorFunction(context, target, "JSTransferable", t); | ||
| 1499 | + t->SetClassName(OneByteString(isolate, "JSTransferable")); | ||
| 1500 | + SetConstructorFunction( | ||
| 1501 | + context, target, "JSTransferable", t, SetConstructorFunctionFlag::NONE); | ||
| 1500 | 1502 | } | |
| 1501 | 1503 | ||
| 1502 | 1504 | SetConstructorFunction(context, | |
| 1503 | 1505 | target, | |
| 1504 | 1506 | env->message_port_constructor_string(), | |
| 1505 | - GetMessagePortConstructorTemplate(env)); | ||
| 1507 | + GetMessagePortConstructorTemplate(env), | ||
| 1508 | + SetConstructorFunctionFlag::NONE); | ||
| 1506 | 1509 | ||
| 1507 | 1510 | // These are not methods on the MessagePort prototype, because | |
| 1508 | 1511 | // the browser equivalents do not provide them. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments