py/objmodule: Add entry for "__main__s" module.
As used as the name of the module in the strict mode. Just alias it to the
existing module object, apparently this is easier than maintain name
binding dynamically.
@@ -148,6 +148,7 @@ mp_obj_t mp_obj_new_module(qstr module_name) {
STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
{ MP_ROM_QSTR(MP_QSTR___main__), MP_ROM_PTR(&mp_module___main__) },
+ { MP_ROM_QSTR(MP_QSTR___main__s), MP_ROM_PTR(&mp_module___main__) },
{ MP_ROM_QSTR(MP_QSTR_builtins), MP_ROM_PTR(&mp_module_builtins) },
{ MP_ROM_QSTR(MP_QSTR_micropython), MP_ROM_PTR(&mp_module_micropython) },
{ MP_ROM_QSTR(MP_QSTR_pycopy), MP_ROM_PTR(&mp_module_micropython) },
