summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/all/resolve-element-function-prototype.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/all/resolve-element-function-prototype.js')
-rw-r--r--test/built-ins/Promise/all/resolve-element-function-prototype.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/built-ins/Promise/all/resolve-element-function-prototype.js b/test/built-ins/Promise/all/resolve-element-function-prototype.js
index c809e78c6..f7c66f97c 100644
--- a/test/built-ins/Promise/all/resolve-element-function-prototype.js
+++ b/test/built-ins/Promise/all/resolve-element-function-prototype.js
@@ -18,10 +18,13 @@ var thenable = {
resolveElementFunction = fulfill;
}
};
+
function NotPromise(executor) {
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
}
-NotPromise.resolve = function(v) { return v; };
+NotPromise.resolve = function(v) {
+ return v;
+};
Promise.all.call(NotPromise, [thenable]);
assert.sameValue(Object.getPrototypeOf(resolveElementFunction), Function.prototype);