Home
last modified time | relevance | path

Searched refs:ToNumber (Results 1 – 22 of 22) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/dawn_node/interop/
DCore.cpp49 out = value.ToNumber().Int32Value(); in FromJS()
60 out = value.ToNumber().Uint32Value(); in FromJS()
71 out = value.ToNumber().Int32Value(); in FromJS()
82 out = value.ToNumber().Uint32Value(); in FromJS()
93 out = value.ToNumber().Int32Value(); in FromJS()
104 out = value.ToNumber().Uint32Value(); in FromJS()
115 out = value.ToNumber().Int64Value(); in FromJS()
129 out = static_cast<uint64_t>(value.ToNumber().Int64Value()); in FromJS()
140 out = value.ToNumber().FloatValue(); in FromJS()
151 out = value.ToNumber().DoubleValue(); in FromJS()
/third_party/node/deps/npm/node_modules/es-abstract/
Des5.js27 ToNumber: function ToNumber(value) {
31 var number = this.ToNumber(value);
37 return this.ToNumber(x) >> 0;
40 return this.ToNumber(x) >>> 0;
43 var number = this.ToNumber(value);
Des2015.js87 ToNumber: function ToNumber(argument) {
94 return this.ToNumber(parseInteger(strSlice(value, 2), 2));
96 return this.ToNumber(parseInteger(strSlice(value, 2), 8));
102 return this.ToNumber(trimmed);
135 var number = this.ToNumber(argument);
143 var number = this.ToNumber(argument);
187 var n = this.ToNumber(argument);
DCHANGELOG.md30 * [Fix] `es2015`+: `ToNumber`: provide the proper hint for Date objects (#27)
55 * [Tests] ES2015: add ToNumber symbol tests
97 * [Fix] `ES6.ToNumber`: should give `NaN` for explicitly signed hex strings (#4)
98 * [Refactor] `ES6.ToNumber`: No need to double-trim
104 * [Fix] ensure `ES.ToNumber` trims whitespace, and does not trim non-whitespace (#3)
133 * [New] ES6’s ToNumber now supports binary and octal literals.
/third_party/node/deps/npm/node_modules/es-abstract/test/
Des5.js74 t.ok(is(NaN, ES.ToNumber(undefined)), 'undefined coerces to NaN');
75 t.ok(is(ES.ToNumber(null), 0), 'null coerces to +0');
76 t.ok(is(ES.ToNumber(false), 0), 'false coerces to +0');
77 t.equal(1, ES.ToNumber(true), 'true coerces to 1');
78 t.ok(is(NaN, ES.ToNumber(NaN)), 'NaN returns itself');
80 t.equal(num, ES.ToNumber(num), num + ' returns itself');
83 …t.ok(is(+numString, ES.ToNumber(numString)), '"' + numString + '" coerces to ' + Number(numString)…
86 …t.ok(is(ES.ToNumber(object), ES.ToNumber(ES.ToPrimitive(object))), 'object ' + object + ' coerces …
88 …t['throws'](function () { return ES.ToNumber(uncoercibleObject); }, TypeError, 'uncoercibleObject …
Dtests.js113 t.ok(is(NaN, ES.ToNumber(undefined)), 'undefined coerces to NaN');
114 t.ok(is(ES.ToNumber(null), 0), 'null coerces to +0');
115 t.ok(is(ES.ToNumber(false), 0), 'false coerces to +0');
116 t.equal(1, ES.ToNumber(true), 'true coerces to 1');
119 st.ok(is(NaN, ES.ToNumber(NaN)), 'NaN returns itself');
121 st.equal(num, ES.ToNumber(num), num + ' returns itself');
124 …st.ok(is(+numString, ES.ToNumber(numString)), '"' + numString + '" coerces to ' + Number(numString…
131 …st.ok(is(ES.ToNumber(object), ES.ToNumber(ES.ToPrimitive(object))), 'object ' + object + ' coerces…
133 …st['throws'](function () { return ES.ToNumber(v.uncoercibleObject); }, TypeError, 'uncoercibleObje…
138 st.equal(ES.ToNumber('0b10'), 2, '0b10 is 2');
[all …]
/third_party/node/test/js-native-api/test_conversions/
Dtest_conversions.c102 static napi_value ToNumber(napi_env env, napi_callback_info info) { in ToNumber() function
145 DECLARE_NAPI_PROPERTY("toNumber", ToNumber), in Init()
/third_party/typescript/tests/baselines/reference/
DobjectTypeWithDuplicateNumericProperty.types2 // numeric properties must be distinct after a ToNumber operation
DnumericStringNamedPropertyEquivalence.types3 // String named and numeric named properties conflict if they would be equivalent after ToNumber on…
DnumericStringNamedPropertyEquivalence.symbols3 // String named and numeric named properties conflict if they would be equivalent after ToNumber on…
DnumericStringNamedPropertyEquivalence.errors.txt12 …and numeric named properties conflict if they would be equivalent after ToNumber on the property n…
DobjectTypeWithDuplicateNumericProperty.errors.txt18 // numeric properties must be distinct after a ToNumber operation
DobjectTypeWithDuplicateNumericProperty.symbols2 // numeric properties must be distinct after a ToNumber operation
/third_party/node/deps/npm/node_modules/es-abstract/operations/
D2015.js13 ToNumber: 'https://ecma-international.org/ecma-262/6.0/#sec-tonumber', property
D2016.js13 ToNumber: 'https://ecma-international.org/ecma-262/7.0/#sec-tonumber', property
D2017.js13 ToNumber: 'https://ecma-international.org/ecma-262/8.0/#sec-tonumber', property
/third_party/node/test/cctest/
Dtest_aliased_buffer.cc70 v8::MaybeLocal<v8::Number> v3 = v2->ToNumber(context); in ReadAndValidate()
/third_party/cef/libcef/renderer/
Dv8_impl.cc1521 InitDouble(value->ToNumber(context).ToLocalChecked()->Value()); in InitFromV8Value()
1525 CefTime(value->ToNumber(context).ToLocalChecked()->Value() / 1000)); in InitFromV8Value()
/third_party/jerryscript/docs/
D02.API-REFERENCE.md3223 Call ToNumber operation on the api value.
/third_party/typescript/doc/
Dspec-ARCHIVED.md2050 … property with a name *N* for which ToString(ToNumber(*N*)) is identical to *N*, where ToString an…
/third_party/node/doc/api/
Dn-api.md3340 This API implements the abstract operation `ToNumber()` as defined in
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dstylo.hpp128622 ToNumber(JSContext* cx, HandleValue v, double* out) in ToNumber() function