Skip to content

Commit

Permalink
Fix use of relative paths in JS compiler (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
larshum authored Sep 19, 2023
1 parent 58c6cbf commit ea49f77
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions stdlib/javascript/intrinsics.mc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include "mexpr/ast.mc"
include "mexpr/pprint.mc"
include "mexpr/const-arity.mc"
include "javascript/ast.mc"
include "stdlib.mc"


-- Fragments used by the intrinsic functions
Expand Down Expand Up @@ -55,10 +56,10 @@ let intrWebNS = nameSym "MExpr_Web_JS_Intrinsics"
let intrNodeNS = nameSym "MExpr_Node_JS_Intrinsics"
let intrBunNS = nameSym "MExpr_Bun_JS_Intrinsics"

let jsIntrinsicsFile_generic = "stdlib/javascript/generic/intrinsics.js"
let jsIntrinsicsFile_web = "stdlib/javascript/web/intrinsics.js"
let jsIntrinsicsFile_node = "stdlib/javascript/node/intrinsics.js"
let jsIntrinsicsFile_bun = "stdlib/javascript/bun/intrinsics.js"
let jsIntrinsicsFile_generic = concat stdlibLoc "/javascript/generic/intrinsics.js"
let jsIntrinsicsFile_web = concat stdlibLoc "/javascript/web/intrinsics.js"
let jsIntrinsicsFile_node = concat stdlibLoc "/javascript/node/intrinsics.js"
let jsIntrinsicsFile_bun = concat stdlibLoc "/javascript/bun/intrinsics.js"

let intrinsicGen = use JSIntrinsic in intrinsic intrGenNS
let intrinsicWeb = use JSIntrinsic in intrinsic intrWebNS
Expand Down

0 comments on commit ea49f77

Please sign in to comment.