primea-wasm-container
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -209,2 +209,3 @@ const { ID, Message, FunctionRef, ModuleRef, ActorRef, getType } = require('primea-objects') | ||
debug['api:data.externalize'](`by ${self.actorSelf.id.toJSON()} (index=${index}, length=${length})`) | ||
length = Math.max(0, length) | ||
const data = Buffer.from(this.get8Memory(index, length)) | ||
@@ -218,2 +219,3 @@ debug['api:data.externalize'](toJSON(data)) | ||
debug['api:data.internalize'](toJSON(data)) | ||
length = Math.min(Math.max(0, length), data.length) | ||
data = data.subarray(srcOffset, srcOffset + length) | ||
@@ -246,2 +248,3 @@ const mem = self.get8Memory(sinkOffset, data.length) | ||
let table = self.refs.get(elemRef, 'elem') | ||
length = Math.min(Math.max(0, length), table.length) | ||
const buf = table.slice(srcOffset, srcOffset + length).map(obj => self.refs.add(obj, getType(obj))) | ||
@@ -248,0 +251,0 @@ debug['api:elem.internalize'](toJSON(buf, false)) |
{ | ||
"name": "primea-wasm-container", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46737
628