mirror of
https://github.com/tc39/test262.git
synced 2025-08-29 13:58:31 +02:00
16 lines
420 B
JavaScript
16 lines
420 B
JavaScript
// Copyright 2011 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* array.forEach can be frozen while in progress
|
|
*
|
|
* @path ch15/15.4/15.4.4/15.4.4.18/S15.4.4.18_A2.js
|
|
* @description Freezes array.forEach during a forEach to see if it works
|
|
*/
|
|
|
|
function foo() {
|
|
['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); });
|
|
}
|
|
foo();
|
|
|