Skip to content

Commit

Permalink
Merge pull request #23 from Enzojz/main
Browse files Browse the repository at this point in the history
Fix to runInContext, runInNewContext and runInThisContext signature
  • Loading branch information
TheSpyder authored Jan 24, 2024
2 parents 4cc5c5a + 8965726 commit 0e1f74e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/unreleased/Fixed-20240124-121124.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Fixed
body: Corrected `VM` method signatures `runInContext`, `runInNewContext` and `runInThisContext`
time: 2024-01-24T12:11:24.898655+11:00
custom:
GithubIssue: "23"
6 changes: 3 additions & 3 deletions src/VM.res
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module Script = {
external makeWithOptions: (string, options) => t = "Script"
@send external createCachedData: t => Buffer.t = "createCachedData"
@send
external runInContext: (t, string, contextifiedObject<'a>) => 'b = "runInContext"
external runInContext: (t, contextifiedObject<'a>) => 'b = "runInContext"
@send
external runInNewContext: (t, string, contextifiedObject<'a>) => 'b = "runInNewContext"
@send external runInThisContext: (t, string) => 'a = "runInThisContext"
external runInNewContext: (t, contextifiedObject<'a>) => 'b = "runInNewContext"
@send external runInThisContext: t => 'a = "runInThisContext"
}

0 comments on commit 0e1f74e

Please sign in to comment.