remove redundant type call_environment
never use the stack of the main thread because we want that the script can always suspend