mirror of
https://github.com/github/codeql-action.git
synced 2026-11-09 06:29:52 +00:00
Update checked-in dependencies
This commit is contained in:
7
node_modules/es-abstract/2021/StringToCodePoints.js
generated
vendored
7
node_modules/es-abstract/2021/StringToCodePoints.js
generated
vendored
@@ -1,20 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $push = callBound('Array.prototype.push');
|
||||
|
||||
var CodePointAt = require('./CodePointAt');
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/12.0/#sec-stringtocodepoints
|
||||
|
||||
module.exports = function StringToCodePoints(string) {
|
||||
if (Type(string) !== 'String') {
|
||||
if (typeof string !== 'string') {
|
||||
throw new $TypeError('Assertion failed: `string` must be a String');
|
||||
}
|
||||
var codePoints = [];
|
||||
|
||||
Reference in New Issue
Block a user