Skip to content

Commit

Permalink
Make stringify available to modules (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyi45 authored Sep 13, 2023
1 parent 2da5bd6 commit 6d13aa1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/requireProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as jsslang from '..'
import * as stdlib from '../stdlib'
import type { Context } from '../types'
import * as types from '../types'
import * as stringify from '../utils/stringify'

/**
* Returns a function that simulates the job of Node's `require`. The require
Expand All @@ -23,7 +24,10 @@ export const getRequireProvider = (context: Context) => (x: string) => {
...jsslang,
dist: {
stdlib,
types
types,
utils: {
stringify
}
},
context
}
Expand Down

0 comments on commit 6d13aa1

Please sign in to comment.