Skip to content

Commit

Permalink
sys:es, compilerEs: fix name of internal Map.__fromLiteral() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Giannini authored and Matthew Giannini committed Nov 30, 2023
1 parent fe9a5dd commit b7872a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compilerEs/fan/ast/JsExpr.fan
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class JsExpr : JsNode

private Void writeMapLiteral(MapLiteralExpr x)
{
js.w("sys.Map.fromLiteral\$([", loc)
js.w("sys.Map.__fromLiteral([", loc)
x.keys.each |k, i| { if (i > 0) js.w(","); writeExpr(k) }
js.w("], [")
x.vals.each |v, i| { if (i > 0) js.w(","); writeExpr(v) }
Expand Down
2 changes: 1 addition & 1 deletion src/sys/es/fan/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class Map extends Obj {
// Internal
//////////////////////////////////////////////////////////////////////////

static fromLiteral$(keys, vals, k, v) {
static __fromLiteral(keys, vals, k, v) {
const map = Map.make(k,v);
for (let i=0; i<keys.length; i++)
map.set(keys[i], vals[i]);
Expand Down

0 comments on commit b7872a5

Please sign in to comment.