Skip to content

Commit

Permalink
fix completion in Web REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 17, 2024
1 parent de8e145 commit 9edace2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
13 changes: 8 additions & 5 deletions dist/lips.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lips.esm.min.js

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions dist/lips.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lips.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -6655,7 +6655,10 @@ Interpreter.prototype.exec = function(code, options = {}) {
Interpreter.prototype.get = function(value) {
const result = this.__env__.get(value);
if (is_function(result)) {
return result.bind(this.__env__);
const context = new LambdaContext({
env: this.__env__
});
return result.bind(context);
}
return result;
};
Expand Down

0 comments on commit 9edace2

Please sign in to comment.