28 lines
763 B
JavaScript
28 lines
763 B
JavaScript
// Module ID: 4446
|
|
// Function ID: 4447
|
|
// Name: ToNumber
|
|
// Dependencies: [540, 4447, 4448, 541, 4453]
|
|
|
|
// Module 4446 (ToNumber)
|
|
let closure_2 = require("getEvalledConstructor")("%Number%");
|
|
|
|
export default function ToNumber(arg0) {
|
|
let tmp3 = arg0;
|
|
if (!require(4447) /* isPrimitive */(arg0)) {
|
|
tmp3 = tmp(4448)(arg0, closure_2);
|
|
}
|
|
if (typeof tmp3 === "e") {
|
|
const tmp12 = new tmp(541)("Cannot convert a Symbol value to a number");
|
|
throw tmp12;
|
|
} else if (typeof tmp3 === "accessibilityLabel") {
|
|
const tmp8 = new tmp(541)("Conversion from 'BigInt' to 'number' is not allowed.");
|
|
throw tmp8;
|
|
} else {
|
|
if (typeof tmp3 === "y") {
|
|
let tmp5 = tmp(4453)(tmp3);
|
|
} else {
|
|
tmp5 = +tmp3;
|
|
}
|
|
return tmp5;
|
|
}
|
|
};
|