Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 the V8 project authors. All rights reserved. |
| 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions | 5 # modification, are permitted provided that the following conditions |
| 6 # are met: | 6 # are met: |
| 7 # 1. Redistributions of source code must retain the above copyright | 7 # 1. Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # 2. Redistributions in binary form must reproduce the above copyright | 9 # 2. Redistributions in binary form must reproduce the above copyright |
| 10 # notice, this list of conditions and the following disclaimer in the | 10 # notice, this list of conditions and the following disclaimer in the |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 PASS Array.prototype.push.call(undefined, {}) threw exception TypeError: Array.p rototype.push called on null or undefined. | 34 PASS Array.prototype.push.call(undefined, {}) threw exception TypeError: Array.p rototype.push called on null or undefined. |
| 35 PASS Array.prototype.reverse.call(undefined) threw exception TypeError: Array.pr ototype.reverse called on null or undefined. | 35 PASS Array.prototype.reverse.call(undefined) threw exception TypeError: Array.pr ototype.reverse called on null or undefined. |
| 36 PASS Array.prototype.shift.call(undefined) threw exception TypeError: Array.prot otype.shift called on null or undefined. | 36 PASS Array.prototype.shift.call(undefined) threw exception TypeError: Array.prot otype.shift called on null or undefined. |
| 37 PASS Array.prototype.slice.call(undefined, 0, 1) threw exception TypeError: Arra y.prototype.slice called on null or undefined. | 37 PASS Array.prototype.slice.call(undefined, 0, 1) threw exception TypeError: Arra y.prototype.slice called on null or undefined. |
| 38 PASS Array.prototype.sort.call(undefined) threw exception TypeError: Array.proto type.sort called on null or undefined. | 38 PASS Array.prototype.sort.call(undefined) threw exception TypeError: Array.proto type.sort called on null or undefined. |
| 39 PASS Array.prototype.splice.call(undefined, 0, 1) threw exception TypeError: Arr ay.prototype.splice called on null or undefined. | 39 PASS Array.prototype.splice.call(undefined, 0, 1) threw exception TypeError: Arr ay.prototype.splice called on null or undefined. |
| 40 PASS Array.prototype.unshift.call(undefined, {}) threw exception TypeError: Arra y.prototype.unshift called on null or undefined. | 40 PASS Array.prototype.unshift.call(undefined, {}) threw exception TypeError: Arra y.prototype.unshift called on null or undefined. |
| 41 PASS Array.prototype.every.call(undefined, toString) threw exception TypeError: Array.prototype.every called on null or undefined. | 41 PASS Array.prototype.every.call(undefined, toString) threw exception TypeError: Array.prototype.every called on null or undefined. |
| 42 PASS Array.prototype.forEach.call(undefined, toString) threw exception TypeError : Array.prototype.forEach called on null or undefined. | 42 PASS Array.prototype.forEach.call(undefined, toString) threw exception TypeError : Array.prototype.forEach called on null or undefined. |
| 43 PASS Array.prototype.some.call(undefined, toString) threw exception TypeError: A rray.prototype.some called on null or undefined. | 43 PASS Array.prototype.some.call(undefined, toString) threw exception TypeError: A rray.prototype.some called on null or undefined. |
| 44 PASS Array.prototype.indexOf.call(undefined, 0) threw exception TypeError: Array .prototype.indexOf called on null or undefined. | 44 PASS Array.prototype.indexOf.call(undefined, 0) threw exception TypeError: Canno t convert undefined or null to object. |
|
mattloring
2016/08/16 16:57:32
Alternatively, is there a way to modify the error
Jakob Kummerow
2016/08/17 15:42:57
See BUILTIN(ArrayConcat) in builtins-array.cc for
| |
| 45 PASS Array.prototype.indlastIndexOfexOf.call(undefined, 0) threw exception TypeE rror: Cannot read property 'call' of undefined. | 45 PASS Array.prototype.indlastIndexOfexOf.call(undefined, 0) threw exception TypeE rror: Cannot read property 'call' of undefined. |
|
mattloring
2016/08/16 16:57:32
While unrelated to this cl, this looks like a typo
Jakob Kummerow
2016/08/17 15:42:57
It does.
The test is correct insofar as an appropr
| |
| 46 PASS Array.prototype.filter.call(undefined, toString) threw exception TypeError: Array.prototype.filter called on null or undefined. | 46 PASS Array.prototype.filter.call(undefined, toString) threw exception TypeError: Array.prototype.filter called on null or undefined. |
| 47 PASS Array.prototype.reduce.call(undefined, toString) threw exception TypeError: Array.prototype.reduce called on null or undefined. | 47 PASS Array.prototype.reduce.call(undefined, toString) threw exception TypeError: Array.prototype.reduce called on null or undefined. |
| 48 PASS Array.prototype.reduceRight.call(undefined, toString) threw exception TypeE rror: Array.prototype.reduceRight called on null or undefined. | 48 PASS Array.prototype.reduceRight.call(undefined, toString) threw exception TypeE rror: Array.prototype.reduceRight called on null or undefined. |
| 49 PASS Array.prototype.map.call(undefined, toString) threw exception TypeError: Ar ray.prototype.map called on null or undefined. | 49 PASS Array.prototype.map.call(undefined, toString) threw exception TypeError: Ar ray.prototype.map called on null or undefined. |
| 50 PASS [{toLocaleString:function(){throw 1}},{toLocaleString:function(){throw 2}}] .toLocaleString() threw exception 1. | 50 PASS [{toLocaleString:function(){throw 1}},{toLocaleString:function(){throw 2}}] .toLocaleString() threw exception 1. |
| 51 PASS successfullyParsed is true | 51 PASS successfullyParsed is true |
| 52 | 52 |
| 53 TEST COMPLETE | 53 TEST COMPLETE |
| 54 | 54 |
| OLD | NEW |