mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 10:01:49 +00:00

PR-URL: https://github.com/nodejs/node/pull/10992 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
9 lines
332 B
JavaScript
9 lines
332 B
JavaScript
// Copyright 2016 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.
|
|
|
|
// Test that the fallback path in RegExpExec executes the default exec
|
|
// implementation.
|
|
delete RegExp.prototype.exec;
|
|
assertEquals("b", "aba".replace(/a/g, ""));
|