Skip to content

Commit

Permalink
chore: add return_string to env
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisseau committed Aug 26, 2024
1 parent 88b2cbc commit e2a16a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/env_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@
V(require_string, "require") \
V(resource_string, "resource") \
V(retry_string, "retry") \
V(return_string, "retry") \
V(salt_length_string, "saltLength") \
V(scheme_string, "scheme") \
V(scopeid_string, "scopeid") \
Expand Down
4 changes: 1 addition & 3 deletions src/node_sqlite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,7 @@ void StatementSync::Iterate(const FunctionCallbackInfo<Value>& args) {
External::New(isolate, capture_context))
.ToLocalChecked();

LocalVector<Name> keys(
isolate,
{env->next_string(), String::NewFromUtf8Literal(isolate, "return")});
LocalVector<Name> keys(isolate, {env->next_string(), env->return_string()});
LocalVector<Value> values(isolate, {next_func, return_func});

Local<Object> global = context->Global();
Expand Down

0 comments on commit e2a16a4

Please sign in to comment.