Two ways I'd try to work around it would be
1. try putting the code referencing Promise into a separate script file that you load in as a custom module, or
2. try to upload the script file without the reference to Promise, then put the reference in later via an upload process (i.e. don't use the NetSuite built in editor, which does perform the validation)