Skip to content

Commit

Permalink
0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Oct 25, 2020
1 parent 2512b46 commit 7975aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ bool InitWrapper(node::Environment* env) {
// Native methods.
env->SetMethod(env->process_object(), "bootstrap", &Bootstrap);
env->SetMethod(env->process_object(), "activateUvLoop", &ActivateUvLoop);
// versions.yode = 0.6.2
// process.versions.yode
v8::Local<v8::Value> versions = env->process_object()->Get(
env->context(), ToV8(env, "versions")).ToLocalChecked();
versions.As<v8::Object>()->Set(
env->context(), ToV8(env, "yode"), ToV8(env, "0.6.2")).ToChecked();
env->context(), ToV8(env, "yode"), ToV8(env, "0.7.0")).ToChecked();
env->process_object()->DefineOwnProperty(
env->context(), ToV8(env, "versions"), versions, v8::ReadOnly).Check();
return true;
Expand Down

0 comments on commit 7975aff

Please sign in to comment.