- Log workforce sync errors to backend stdout so they appear in docker logs - Extend error flash from 5s to 15s so errors are readable - Replace sendBeacon (POST-only) with keepalive fetch (PUT) on unload — sendBeacon was hitting 404s on all three unload saves Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
526 B
JavaScript
18 lines
526 B
JavaScript
'use strict';
|
|
|
|
var SameValueNonNumeric = require('./SameValueNonNumeric');
|
|
var Type = require('./Type');
|
|
var BigIntEqual = require('./BigInt/equal');
|
|
var NumberEqual = require('./Number/equal');
|
|
|
|
// https://262.ecma-international.org/13.0/#sec-isstrictlyequal
|
|
|
|
module.exports = function IsStrictlyEqual(x, y) {
|
|
if (Type(x) !== Type(y)) {
|
|
return false;
|
|
}
|
|
if (typeof x === 'number' || typeof x === 'bigint') {
|
|
return typeof x === 'number' ? NumberEqual(x, y) : BigIntEqual(x, y);
|
|
}
|
|
return SameValueNonNumeric(x, y);
|
|
};
|