Fix evaluation order for binary operators (#4114)
Furthermore fix toBoolean for BigInts as well. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -13,6 +13,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* Boolean. */
|
||||
|
||||
assert(!BigInt("0") === true)
|
||||
assert(!BigInt("1") === false)
|
||||
assert(!BigInt("-1") === false)
|
||||
|
||||
/* Strict equal. */
|
||||
|
||||
assert(BigInt("0") === BigInt("0"))
|
||||
|
||||
Reference in New Issue
Block a user