diff --git a/test/built-ins/Promise/all/resolve-element-function-name.js b/test/built-ins/Promise/all/resolve-element-function-name.js index 2af12b808f..e743dba347 100644 --- a/test/built-ins/Promise/all/resolve-element-function-name.js +++ b/test/built-ins/Promise/all/resolve-element-function-name.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -es6id: 25.4.4.1.2 +esid: sec-promise.all-resolve-element-functions description: The `name` property of Promise.all Resolve Element functions info: | A promise resolve function is an anonymous built-in function. @@ -29,3 +29,4 @@ NotPromise.resolve = function(v) { Promise.all.call(NotPromise, [thenable]); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveElementFunction, "name"), false); +assert.sameValue(resolveElementFunction.name, ""); diff --git a/test/built-ins/Promise/allSettled/reject-element-function-name.js b/test/built-ins/Promise/allSettled/reject-element-function-name.js index 79944bb09f..5f8827aacf 100644 --- a/test/built-ins/Promise/allSettled/reject-element-function-name.js +++ b/test/built-ins/Promise/allSettled/reject-element-function-name.js @@ -30,3 +30,4 @@ NotPromise.resolve = function(v) { Promise.allSettled.call(NotPromise, [thenable]); assert.sameValue(Object.prototype.hasOwnProperty.call(rejectElementFunction, 'name'), false); +assert.sameValue(rejectElementFunction.name, ''); diff --git a/test/built-ins/Promise/allSettled/resolve-element-function-name.js b/test/built-ins/Promise/allSettled/resolve-element-function-name.js index 76ff9fb83c..2df8fb8093 100644 --- a/test/built-ins/Promise/allSettled/resolve-element-function-name.js +++ b/test/built-ins/Promise/allSettled/resolve-element-function-name.js @@ -33,3 +33,4 @@ assert.sameValue( Object.prototype.hasOwnProperty.call(resolveElementFunction, 'name'), false ); +assert.sameValue(resolveElementFunction.name, ''); diff --git a/test/built-ins/Promise/executor-function-name.js b/test/built-ins/Promise/executor-function-name.js index f571504fc9..cf412cc6ce 100644 --- a/test/built-ins/Promise/executor-function-name.js +++ b/test/built-ins/Promise/executor-function-name.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -es6id: 25.4.1.5.1 +esid: sec-getcapabilitiesexecutor-functions description: The `name` property of GetCapabilitiesExecutor functions info: | A GetCapabilitiesExecutor function is an anonymous built-in function. @@ -22,3 +22,4 @@ function NotPromise(executor) { Promise.resolve.call(NotPromise); assert.sameValue(Object.prototype.hasOwnProperty.call(executorFunction, "name"), false); +assert.sameValue(executorFunction.name, ""); diff --git a/test/built-ins/Promise/reject-function-name.js b/test/built-ins/Promise/reject-function-name.js index edf684bc35..af64244684 100644 --- a/test/built-ins/Promise/reject-function-name.js +++ b/test/built-ins/Promise/reject-function-name.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -es6id: 25.4.1.3.1 +esid: sec-promise-reject-functions description: The `name` property of Promise Reject functions info: | A promise reject function is an anonymous built-in function. @@ -19,3 +19,4 @@ new Promise(function(resolve, reject) { }); assert.sameValue(Object.prototype.hasOwnProperty.call(rejectFunction, "name"), false); +assert.sameValue(rejectFunction.name, ""); diff --git a/test/built-ins/Promise/resolve-function-name.js b/test/built-ins/Promise/resolve-function-name.js index 7f179721c5..afaec3aaf6 100644 --- a/test/built-ins/Promise/resolve-function-name.js +++ b/test/built-ins/Promise/resolve-function-name.js @@ -2,7 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- -es6id: 25.4.1.3.2 +esid: sec-promise-resolve-functions description: The `name` property of Promise Resolve functions info: | A promise resolve function is an anonymous built-in function. @@ -19,3 +19,4 @@ new Promise(function(resolve, reject) { }); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveFunction, "name"), false); +assert.sameValue(resolveFunction.name, "");