mrdocs::js::Scope::getGlobal

Return a global object if it exists.

Synopsis

Expected<Value>
getGlobal(std::string_view name);

Description

This function returns a Value that represents a global variable in the parent context.

If the variable does not exist, an error is returned.

Return Value

a global object if it exists.

Parameters

Name

Description

name

The name of the global variable.

Created with MrDocs