Chromium Code Reviews| Index: src/array.js |
| diff --git a/src/array.js b/src/array.js |
| index 7cf744bedf29fc9c138b848d8d66d9021cd8afa0..59c1e31dda7c13bee8435d53bc25ce1bca810c59 100644 |
| --- a/src/array.js |
| +++ b/src/array.js |
| @@ -741,6 +741,9 @@ function ArraySplice(start, delete_count) { |
| return deleted_elements; |
| } |
| +if ( IS_NULL_OR_UNDEFINED((function(){return this;})()) ) { |
| + throw "Failed check for bad global object"; |
| +} |
| function ArraySort(comparefn) { |
| if (IS_NULL_OR_UNDEFINED(this) && !IS_UNDETECTABLE(this)) { |