⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
type
/
string
/
View File Name :
coerce.js
"use strict"; var isValue = require("../value/is") , isObject = require("../object/is"); var objectToString = Object.prototype.toString; module.exports = function (value) { if (!isValue(value)) return null; if (isObject(value)) { // Reject Object.prototype.toString coercion var valueToString = value.toString; if (typeof valueToString !== "function") return null; if (valueToString === objectToString) return null; // Note: It can be object coming from other realm, still as there's no ES3 and CSP compliant // way to resolve its realm's Object.prototype.toString it's left as not addressed edge case } try { return "" + value; // Ensure implicit coercion } catch (error) { return null; } };