Skip to content

Commit

Permalink
REPL needs to use root context to access builtin functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Cutting committed Apr 3, 2018
1 parent dc1f83d commit d7f11af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Sing/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func log(_ str: Any? = nil) {
}

let songArgs = scriptArgs.map { Expression.string($0) }
var context: Context = ["args": .list(songArgs)]
var context: Context = extend(context: rootContext, with: ["args": .list(songArgs)])

func dumpContext() {
print(context as AnyObject)
Expand Down

0 comments on commit d7f11af

Please sign in to comment.