Skip to content

Commit 0e1f74e

Browse files
authored
Merge pull request #23 from Enzojz/main
Fix to runInContext, runInNewContext and runInThisContext signature
2 parents 4cc5c5a + 8965726 commit 0e1f74e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: Fixed
2+
body: Corrected `VM` method signatures `runInContext`, `runInNewContext` and `runInThisContext`
3+
time: 2024-01-24T12:11:24.898655+11:00
4+
custom:
5+
GithubIssue: "23"

src/VM.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ module Script = {
2525
external makeWithOptions: (string, options) => t = "Script"
2626
@send external createCachedData: t => Buffer.t = "createCachedData"
2727
@send
28-
external runInContext: (t, string, contextifiedObject<'a>) => 'b = "runInContext"
28+
external runInContext: (t, contextifiedObject<'a>) => 'b = "runInContext"
2929
@send
30-
external runInNewContext: (t, string, contextifiedObject<'a>) => 'b = "runInNewContext"
31-
@send external runInThisContext: (t, string) => 'a = "runInThisContext"
30+
external runInNewContext: (t, contextifiedObject<'a>) => 'b = "runInNewContext"
31+
@send external runInThisContext: t => 'a = "runInThisContext"
3232
}

0 commit comments

Comments
 (0)