7dedd92998
Add logic stated in Bug: v8:9731 Change-Id: I0b3468bbad11a178f36d682febd0e44214646de8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1828279 Commit-Queue: Frank Tang <ftang@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/master@{#64027}
16 lines
456 B
JavaScript
16 lines
456 B
JavaScript
// Copyright 2019 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.
|
|
|
|
assertFalse(/k/i.test('\u212A'));
|
|
assertTrue(/k/i.test('K'));
|
|
assertTrue(/k/i.test('k'));
|
|
|
|
assertFalse(/K/i.test('\u212A'));
|
|
assertTrue(/K/i.test('K'));
|
|
assertTrue(/K/i.test('k'));
|
|
|
|
assertTrue(/\u212A/i.test('\u212A'));
|
|
assertFalse(/\u212A/i.test('k'));
|
|
assertFalse(/\u212A/i.test('K'));
|