Skip to content
Snippets Groups Projects
  • André Bargull's avatar
    d7d154b3
    Remove requirement that ToNumber(value) completes in less than $262.agent.MAX_TIME_EPSILON · d7d154b3
    André Bargull authored
    $262.agent.MAX_TIME_EPSILON was intended to be used for callers like `Atomics.wait(typedArray, indexNumber, valueNumber, timeoutNumber)` where all parameters with the `Number` suffix denote values which are already Number values. It should not be used for `Atomics.wait(typedArray, indexObject, valueObject, timeoutObject)` where all parameters with the `Object` suffix denote values which are Object values, because in that case we'd require that `ToNumber(objectValue)` (potentially invoked multiple times) completes in less than 100 milliseconds (the default value for MAX_TIME_EPSILON).
    
    Also removes $262.agent.MAX_TIME_EPSILON because it is now no longer used.
    d7d154b3
    History
    Remove requirement that ToNumber(value) completes in less than $262.agent.MAX_TIME_EPSILON
    André Bargull authored
    $262.agent.MAX_TIME_EPSILON was intended to be used for callers like `Atomics.wait(typedArray, indexNumber, valueNumber, timeoutNumber)` where all parameters with the `Number` suffix denote values which are already Number values. It should not be used for `Atomics.wait(typedArray, indexObject, valueObject, timeoutObject)` where all parameters with the `Object` suffix denote values which are Object values, because in that case we'd require that `ToNumber(objectValue)` (potentially invoked multiple times) completes in less than 100 milliseconds (the default value for MAX_TIME_EPSILON).
    
    Also removes $262.agent.MAX_TIME_EPSILON because it is now no longer used.