Home
last modified time | relevance | path

Searched refs:ToUint8Clamp (Results 1 – 5 of 5) sorted by relevance

/third_party/node/deps/npm/node_modules/es-abstract/test/
Dtests.js320 t.ok(is(0, ES.ToUint8Clamp(NaN)), 'NaN coerces to +0');
321 t.ok(is(0, ES.ToUint8Clamp(0)), '+0 returns +0');
322 t.ok(is(0, ES.ToUint8Clamp(-0)), '-0 returns +0');
323 t.ok(is(0, ES.ToUint8Clamp(-Infinity)), '-Infinity returns +0');
324 …t['throws'](function () { return ES.ToUint8Clamp(v.uncoercibleObject); }, TypeError, 'uncoercibleO…
326 t.ok(is(255, ES.ToUint8Clamp(number)), number + ' coerces to 255');
328 t.equal(1, ES.ToUint8Clamp(1.49), '1.49 coerces to 1');
329 t.equal(2, ES.ToUint8Clamp(1.5), '1.5 coerces to 2, because 2 is even');
330 t.equal(2, ES.ToUint8Clamp(1.51), '1.51 coerces to 2');
332 t.equal(2, ES.ToUint8Clamp(2.49), '2.49 coerces to 2');
[all …]
/third_party/node/deps/npm/node_modules/es-abstract/operations/
D2015.js21 ToUint8Clamp: 'https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp', property
D2016.js21 ToUint8Clamp: 'https://ecma-international.org/ecma-262/7.0/#sec-touint8clamp', property
D2017.js21 ToUint8Clamp: 'https://ecma-international.org/ecma-262/8.0/#sec-touint8clamp', property
/third_party/node/deps/npm/node_modules/es-abstract/
Des2015.js142 ToUint8Clamp: function ToUint8Clamp(argument) {