Index: test/mjsunit/harmony/promises.js |
diff --git a/test/mjsunit/harmony/promises.js b/test/mjsunit/harmony/promises.js |
index 38ccd7fb2bdc27a645efa5e25c1c03b0daaa2446..b5137931003ca397f0d116b95ef4e90921cebd7a 100644 |
--- a/test/mjsunit/harmony/promises.js |
+++ b/test/mjsunit/harmony/promises.js |
@@ -559,9 +559,9 @@ function assertAsyncDone(iteration) { |
})(); |
(function() { |
- Promise.all({get length() { throw 666 }}).chain( |
+ Promise.all({}).chain( |
assertUnreachable, |
- function(r) { assertAsync(r === 666, "all/no-array") } |
+ function(r) { assertAsync(r instanceof TypeError, "all/no-array") } |
) |
assertAsyncRan() |
})(); |
@@ -658,9 +658,9 @@ function assertAsyncDone(iteration) { |
})(); |
(function() { |
- Promise.race({get length() { throw 666 }}).chain( |
+ Promise.race({}).chain( |
assertUnreachable, |
- function(r) { assertAsync(r === 666, "one/no-array") } |
+ function(r) { assertAsync(r instanceof TypeError, "one/no-array") } |
) |
assertAsyncRan() |
})(); |