mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Merge pull request #1280 from cxielarko/bigint-typeof
typeof test for BigInt
This commit is contained in:
commit
3c5c0eddc4
15
test/language/expressions/typeof/bigint.js
Normal file
15
test/language/expressions/typeof/bigint.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// Copyright (C) 2017 Robin Templeton. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-typeof-operator-runtime-semantics-evaluation
|
||||||
|
description: typeof of BigInt and BigInt object
|
||||||
|
info: >
|
||||||
|
The typeof Operator
|
||||||
|
|
||||||
|
Runtime Semantics: Evaluation
|
||||||
|
features: [BigInt]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.sameValue(typeof 0n, "bigint");
|
||||||
|
assert.sameValue(typeof Object(0n), "object");
|
Loading…
x
Reference in New Issue
Block a user