assertModule method

SassModule assertModule([
  1. String? name
])

Throws a SassScriptException if this isn't a module reference.

If this came from a function argument, name is the argument name (without the $). It's used for error reporting.

Implementation

SassModule assertModule([String? name]) =>
    throw SassScriptException("$this is not a module reference.", name);