Files
tsgo/testdata/baselines/reference/submodule/conformance/exponentiationOperatorWithOnlyNullValueOrUndefinedValue.js

18 lines
569 B
TypeScript

//// [tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithOnlyNullValueOrUndefinedValue.ts] ////
//// [exponentiationOperatorWithOnlyNullValueOrUndefinedValue.ts]
// operator **
var r1 = null ** null;
var r2 = null ** undefined;
var r3 = undefined ** null;
var r4 = undefined ** undefined;
//// [exponentiationOperatorWithOnlyNullValueOrUndefinedValue.js]
"use strict";
// operator **
var r1 = Math.pow(null, null);
var r2 = Math.pow(null, undefined);
var r3 = Math.pow(undefined, null);
var r4 = Math.pow(undefined, undefined);