-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: V8 | ||
Type: Package | ||
Title: Embedded JavaScript and WebAssembly Engine for R | ||
Version: 2.9000 | ||
Version: 3.0 | ||
Authors@R: person("Jeroen", "Ooms", role = c("aut", "cre"), email = "[email protected]", | ||
comment = c(ORCID = "0000-0002-4035-0289")) | ||
Description: An R interface to V8: Google's open source JavaScript and WebAssembly | ||
|
@@ -12,9 +12,11 @@ URL: https://jeroen.cran.dev/V8 (docs) | |
https://github.com/jeroen/v8 (devel) | ||
https://v8.dev (upstream) | ||
BugReports: https://github.com/jeroen/v8/issues | ||
SystemRequirements: V8 version 6+ recommended, but 3.14 (legacy) is still supported as | ||
well. On Debian / Ubuntu you need either libv8-dev or libnode-dev, on Fedora use | ||
v8-devel. | ||
SystemRequirements: V8 engine version 6+ is needed for modern JS and WASM support. On | ||
Debian / Ubuntu install either libv8-dev or libnode-dev, on Fedora use v8-devel. | ||
The readme has instructions for installing backports on Ubuntu Xenial and Bionic. | ||
It is still possible to build this package against the legacy libv8 version 3.14 | ||
branch, but these engines only support traditional (ES5) JavaScript. | ||
NeedsCompilation: yes | ||
VignetteBuilder: knitr | ||
Imports: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
context("WASM") | ||
|
||
test_that("Load WASM program", { | ||
skip_if_not(engine_info()$version > 6) | ||
instance <- wasm(system.file('wasm/add.wasm', package = 'V8')) | ||
expect_equal(names(instance$exports), 'add') | ||
expect_equal(instance$exports$add(12, 30), 42) | ||
}) |