src: replace usage of deprecated Delete

PR-URL: https://github.com/nodejs/node/pull/5159
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Michaël Zasso authored and Ali Sheikh committed 2016-03-03 20:35:20 -08:00
1 parent 16b0a8c1ac
commit d45045f318
2 files changed
+9 -5

No files matched your search

+8 -4
View File
@@ -1051,7 +1051,8 @@ void SetupDomainUse(const FunctionCallbackInfo<Value>& args) {
// Do a little housekeeping.
env->process_object()->Delete(
FIXED_ONE_BYTE_STRING(args.GetIsolate(), "_setupDomainUse"));
env->context(),
FIXED_ONE_BYTE_STRING(args.GetIsolate(), "_setupDomainUse")).FromJust();
uint32_t* const fields = env->domain_flag()->fields();
uint32_t const fields_count = env->domain_flag()->fields_count();
@@ -1074,7 +1075,8 @@ void SetupProcessObject(const FunctionCallbackInfo<Value>& args) {
env->set_push_values_to_array_function(args[0].As<Function>());
env->process_object()->Delete(
FIXED_ONE_BYTE_STRING(env->isolate(), "_setupProcessObject"));
env->context(),
FIXED_ONE_BYTE_STRING(env->isolate(), "_setupProcessObject")).FromJust();
}
@@ -1090,7 +1092,8 @@ void SetupNextTick(const FunctionCallbackInfo<Value>& args) {
// Do a little housekeeping.
env->process_object()->Delete(
FIXED_ONE_BYTE_STRING(args.GetIsolate(), "_setupNextTick"));
env->context(),
FIXED_ONE_BYTE_STRING(args.GetIsolate(), "_setupNextTick")).FromJust();
// Values use to cross communicate with processNextTick.
uint32_t* const fields = env->tick_info()->fields();
@@ -1130,7 +1133,8 @@ void SetupPromises(const FunctionCallbackInfo<Value>& args) {
env->set_promise_reject_function(args[0].As<Function>());
env->process_object()->Delete(
FIXED_ONE_BYTE_STRING(args.GetIsolate(), "_setupPromises"));
env->context(),
FIXED_ONE_BYTE_STRING(args.GetIsolate(), "_setupPromises")).FromJust();
}