Save current BZZZ config-ui state before CHORUS branding update
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
24
install/config-ui/node_modules/es-abstract/2018/UnicodeEscape.js
generated
vendored
Normal file
24
install/config-ui/node_modules/es-abstract/2018/UnicodeEscape.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var callBound = require('call-bound');
|
||||
|
||||
var $charCodeAt = callBound('String.prototype.charCodeAt');
|
||||
var $numberToString = callBound('Number.prototype.toString');
|
||||
var $toLowerCase = callBound('String.prototype.toLowerCase');
|
||||
var $strSlice = callBound('String.prototype.slice');
|
||||
|
||||
// https://262.ecma-international.org/9.0/#sec-unicodeescape
|
||||
|
||||
module.exports = function UnicodeEscape(C) {
|
||||
if (typeof C !== 'string' || C.length !== 1) {
|
||||
throw new $TypeError('Assertion failed: `C` must be a single code unit');
|
||||
}
|
||||
var n = $charCodeAt(C, 0);
|
||||
if (n > 0xFFFF) {
|
||||
throw new $TypeError('`Assertion failed: numeric value of `C` must be <= 0xFFFF');
|
||||
}
|
||||
|
||||
return '\\u' + $strSlice('0000' + $toLowerCase($numberToString(n, 16)), -4);
|
||||
};
|
||||
Reference in New Issue
Block a user