Lines Matching defs:util
3 const { types } = require('util')
4 const { hasOwn, toUSVString } = require('./util')
9 webidl.util = {}
62 webidl.util.Type = function (V) {
82 webidl.util.ConvertToInt = function (V, bitLength, signedness, opts = {}) {
140 x = webidl.util.IntegerPart(x)
186 x = webidl.util.IntegerPart(x)
202 webidl.util.IntegerPart = function (n) {
219 if (webidl.util.Type(V) !== 'Object') {
222 message: `Value of type ${webidl.util.Type(V)} is not an Object.`
261 if (webidl.util.Type(O) !== 'Object') {
264 message: `Value of type ${webidl.util.Type(O)} is not an Object.`
333 const type = webidl.util.Type(dictionary)
465 const x = webidl.util.ConvertToInt(V, 64, 'signed')
475 const x = webidl.util.ConvertToInt(V, 64, 'unsigned')
485 const x = webidl.util.ConvertToInt(V, 32, 'unsigned')
495 const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts)
510 webidl.util.Type(V) !== 'Object' ||
549 webidl.util.Type(V) !== 'Object' ||
585 if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) {