2017-03-31 14:38:36 +00:00
|
|
|
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
let i = 0;
|
|
|
|
let re = /./g;
|
|
|
|
re.exec = () => {
|
2017-11-20 11:35:55 +00:00
|
|
|
if (i++ == 0) return { length: 2 ** 16 };
|
2017-03-31 14:38:36 +00:00
|
|
|
return null;
|
|
|
|
};
|
|
|
|
|
|
|
|
"".replace(re);
|