in src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java [258:265]
private Object createQInstance(Context context, Script qScript) {
CommonJsModule module = new CommonJsModule();
Scriptable tempScope = context.newObject(qScope);
ScriptableObject.putProperty(tempScope, Variables.MODULE, module);
ScriptableObject.putProperty(tempScope, Variables.EXPORTS, module.getExports());
qScript.exec(context, tempScope);
return module.getExports();
}