Files
tsgo/testdata/baselines/reference/submodule/compiler/bigIntWithTargetES2016.js

15 lines
361 B
TypeScript

//// [tests/cases/compiler/bigIntWithTargetES2016.ts] ////
//// [bigIntWithTargetES2016.ts]
BigInt(1) ** BigInt(1); // should not error
let num = BigInt(2);
num **= BigInt(2); // should not error
//// [bigIntWithTargetES2016.js]
"use strict";
BigInt(1) ** BigInt(1); // should not error
let num = BigInt(2);
num **= BigInt(2); // should not error