2.1.70 [ECMA-262/6] Section 19.2.3.6 Function.prototype[@@hasInstance] ( V )
V0126: Calling @@hasInstance has no effect
The specification states:
-
19.2.3.6 Function.prototype[@@hasInstance] ( V ) When the @@hasInstance method of an object F is called with value V, the following steps are taken: 1. Let F be the this value. 2. Return OrdinaryHasInstance(F, V). The value of the name property of this function is "[Symbol.hasInstance]". This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. ... This property is non-writable and non-configurable to prevent tampering that could be used to globally expose the target function of a bound function.
All document modes (All versions)
Calling @@hasInstance
has no
effect.