Skip to content

Commit

Permalink
This implementation shouldn't be needed, but maybe it works?
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Dec 7, 2024
1 parent 7843933 commit 3a87b2d
Showing 1 changed file with 20 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import ortus.boxlang.runtime.scopes.ArgumentsScope;
import ortus.boxlang.runtime.scopes.Key;
import ortus.boxlang.runtime.types.Argument;
import ortus.boxlang.runtime.types.util.BLCollector;
import ortus.boxlang.runtime.types.Array;
import ortus.boxlang.runtime.types.util.ListUtil;

@BoxBIF
Expand Down Expand Up @@ -54,16 +54,25 @@ public Object _invoke( IBoxContext context, ArgumentsScope arguments ) {
if ( existingClientContext == null ) {
return "";
}
return ListUtil.asString(
existingClientContext
.getClient()
.getClientScope()
.keySet()
.stream()
.filter( key -> !systemProvidedVariables.contains( key ) )
.collect( BLCollector.toArray() ),
","
);

Array vars = new Array();
for ( Key key : existingClientContext.getClient().getClientScope().keySet() ) {
if ( !systemProvidedVariables.contains( key ) ) {
vars.add( key );
}
}
return ListUtil.asString( vars, "," );

// return ListUtil.asString(
// existingClientContext
// .getClient()
// .getClientScope()
// .keySet()
// .stream()
// .filter( key -> !systemProvidedVariables.contains( key ) )
// .collect( BLCollector.toArray() ),
// ","
// );

}
}

0 comments on commit 3a87b2d

Please sign in to comment.