diff --git a/test/staging/built-ins/RegExp/escape/surrogate-pair.js b/test/staging/built-ins/RegExp/escape/surrogate-pair.js new file mode 100644 index 0000000000..af35e3a2b9 --- /dev/null +++ b/test/staging/built-ins/RegExp/escape/surrogate-pair.js @@ -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');