New typeCoercion.js includes BigInt literal like 0n. And it causes some test failures like test262/test/built-ins/String/prototype/indexOf/position-tointeger.js if VM does not support BigInt literal.
But test262/test/built-ins/String/prototype/indexOf/position-tointeger.js is essentially unrelated to BigInt.
Since BigInt is new feature, and since typeCoercion.js is not marked with features: [BigInt], BigInt(0) is better way.
New
typeCoercion.jsincludes BigInt literal like0n. And it causes some test failures liketest262/test/built-ins/String/prototype/indexOf/position-tointeger.jsif VM does not support BigInt literal.But
test262/test/built-ins/String/prototype/indexOf/position-tointeger.jsis essentially unrelated to BigInt.Since BigInt is new feature, and since
typeCoercion.jsis not marked withfeatures: [BigInt],BigInt(0)is better way.