mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
569 B
TypeScript
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);
|