primea-annotations
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -6,2 +6,3 @@ const Stream = require('buffer-pipe') | ||
const nativeTypes = new Set(['i32', 'i64', 'f32', 'f64']) | ||
const FUNC_TYPE = 0x60 | ||
@@ -311,5 +312,7 @@ const LANGUAGE_TYPES_STRG = { | ||
if (!newType.params.every(param => param === 'i32')) { | ||
throw new Error('invalid base param type') | ||
} | ||
newType.params.forEach((param, index) => { | ||
if (!nativeTypes.has(customType.params[index]) && param !== 'i32') { | ||
throw new Error('invalid base param type') | ||
} | ||
}) | ||
} | ||
@@ -316,0 +319,0 @@ |
{ | ||
"name": "primea-annotations", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "parsing/encoding for primea's type annotations", | ||
@@ -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
1651611
16743