diff --git a/AUTHORS b/AUTHORS index 8f331b36ea..9dfb07328e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -96,6 +96,7 @@ Sakthipriyan Vairamani (thefourtheye) Sandro Santilli Sanjoy Das Seo Sanghyeon +Stefan Penner Tobias Burnus Victor Costan Vlad Burlik diff --git a/test/mjsunit/es6/promises.js b/test/mjsunit/es6/promises.js index 19239b601b..405da02b53 100644 --- a/test/mjsunit/es6/promises.js +++ b/test/mjsunit/es6/promises.js @@ -62,7 +62,15 @@ function clearProp(o, name) { // Find intrinsics and null them out. var globals = Object.getOwnPropertyNames(this) -var whitelist = {Promise: true, TypeError: true} +var whitelist = { + Promise: true, + TypeError: true, + String: true, + JSON: true, + Error: true, + MjsUnitAssertionError: true +}; + for (var i in globals) { var name = globals[i] if (name in whitelist || name[0] === name[0].toLowerCase()) delete globals[i] @@ -97,7 +105,6 @@ function assertAsyncDone(iteration) { }); } - (function() { assertThrows(function() { Promise(function() {}) }, TypeError) })();