2017-08-01 11:36:44 -05: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.
|
|
|
|
|
2022-09-21 13:28:42 +02:00
|
|
|
// Flags: --expose-externalize-string
|
2017-08-01 11:36:44 -05:00
|
|
|
|
|
|
|
!function() {
|
2023-10-05 08:46:07 +02:00
|
|
|
const s0 = "external string turned into two byte 🤓";
|
2017-08-01 11:36:44 -05:00
|
|
|
const s1 = s0.substring(1);
|
2023-10-05 08:46:07 +02:00
|
|
|
externalizeString(s0);
|
2017-08-01 11:36:44 -05:00
|
|
|
|
|
|
|
s1.toLowerCase();
|
|
|
|
}();
|