Compare commits
No commits in common. "012b8c8cf188b3442ae2a51b282a3e6003f1d45f" and "fe6f54b4024312f8f3152d5d0d985b00ada144c0" have entirely different histories.
012b8c8cf1
...
fe6f54b402
|
|
@ -42,7 +42,6 @@ export const globals = {
|
|||
'var?': function (this: VM, v: string) {
|
||||
return typeof v !== 'string' || this.scope.has(v)
|
||||
},
|
||||
ref: (fn: Function) => fn,
|
||||
|
||||
// env
|
||||
args: Bun.argv.slice(1),
|
||||
|
|
|
|||
|
|
@ -91,15 +91,3 @@ describe('environment', () => {
|
|||
await expect(`list.first args | str.ends-with? 'shrimp.test.ts'`).toEvaluateTo(true)
|
||||
})
|
||||
})
|
||||
|
||||
describe('ref', () => {
|
||||
expect(`rnd = do x: true end; rnd | type`).toEvaluateTo('boolean')
|
||||
expect(`rnd = do x: true end; ref rnd | type`).toEvaluateTo('function')
|
||||
|
||||
expect(`math.random | type`).toEvaluateTo('number')
|
||||
expect(`ref math.random | type`).toEvaluateTo('native')
|
||||
|
||||
expect(`rnd = math.random; rnd | type`).toEvaluateTo('number')
|
||||
expect(`rnd = ref math.random; rnd | type`).toEvaluateTo('number')
|
||||
expect(`rnd = ref math.random; ref rnd | type`).toEvaluateTo('native')
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user