Expected no error, got SyntaxError: warning: the variable "Promise" was not declared in function "global"