@webassemblyjs/helper-module-context
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -24,3 +24,7 @@ "use strict"; | ||
var moduleContext = new ModuleContext(); | ||
assert(m.type === "Module"); | ||
if (!(m.type === "Module")) { | ||
throw new Error('m.type === "Module"' + " error: " + (undefined || "unknown")); | ||
} | ||
m.fields.forEach(function (field) { | ||
@@ -185,3 +189,6 @@ switch (field.type) { | ||
value: function getFunctionOffsetByIdentifier(name) { | ||
assert(typeof name === "string"); | ||
if (!(typeof name === "string")) { | ||
throw new Error('typeof name === "string"' + " error: " + (undefined || "unknown")); | ||
} | ||
return this.funcsOffsetByIdentifier[name]; | ||
@@ -251,3 +258,6 @@ } | ||
value: function getGlobalOffsetByIdentifier(name) { | ||
assert(typeof name === "string"); | ||
if (!(typeof name === "string")) { | ||
throw new Error('typeof name === "string"' + " error: " + (undefined || "unknown")); | ||
} | ||
return this.globalsOffsetByIdentifier[name]; | ||
@@ -254,0 +264,0 @@ } |
{ | ||
"name": "@webassemblyjs/helper-module-context", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
13799
474