blob: 9a0f116a3a9dfd319059d7a34fdca67721c13aae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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
description: Freezes array.forEach during a forEach to see if it works
---*/
function foo() {
['z'].forEach(function() {
Object.freeze(Array.prototype.forEach);
});
}
foo();
reportCompare(0, 0);
|