Skip to content

Commit

Permalink
[regexp-escape] Implement and stage RegExp.escape
Browse files Browse the repository at this point in the history
Bug: 353856236
Change-Id: I24deb20ea4fe1a9b49c13ed0f7e038dea9892354
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6254804
Reviewed-by: Rezvan Mahdavi Hezaveh <[email protected]>
Commit-Queue: Shu-yu Guo <[email protected]>
Cr-Commit-Position: refs/heads/main@{#98671}
  • Loading branch information
syg authored and [email protected] committed Feb 12, 2025
1 parent c23db80 commit bce0db2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/staging/built-ins/RegExp/escape/surrogate-pair.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (C) 2025 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: Unescaped surrogate pairs
features: [RegExp.escape]
---*/

assert.sameValue(RegExp.escape("\ud800\udc00"), "\ud800\udc00", 'Unescaped surrogate pair');

0 comments on commit bce0db2

Please sign in to comment.