summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js
blob: bdaef05035ecba0c8df4c473f54ca1bbb0d83359 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2011 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: array.forEach can be frozen while in progress
esid: sec-array.prototype.foreach
es5id: 15.4.4.18_A1
description: Freezes array.forEach during a forEach to see if it works
---*/

['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); });