Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test262
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pmaksimo
test262
Commits
cb19235b
Commit
cb19235b
authored
9 years ago
by
Mike Pennisi
Browse files
Options
Downloads
Patches
Plain Diff
Add tests for Number.{MAX,MIN}_SAFE_INTEGER
parent
007d3b1e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/built-ins/Number/MAX_SAFE_INTEGER.js
+23
-0
23 additions, 0 deletions
test/built-ins/Number/MAX_SAFE_INTEGER.js
test/built-ins/Number/MIN_SAFE_INTEGER.js
+23
-0
23 additions, 0 deletions
test/built-ins/Number/MIN_SAFE_INTEGER.js
with
46 additions
and
0 deletions
test/built-ins/Number/MAX_SAFE_INTEGER.js
0 → 100644
+
23
−
0
View file @
cb19235b
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Property descriptor for `Number.MAX_SAFE_INTEGER`
esid: sec-number.max_safe_integer
es6id: 20.1.2.6
info: >
The value of Number.MAX_SAFE_INTEGER is 9007199254740991
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.
includes: [propertyHelper.js]
---*/
var
desc
=
Object
.
getOwnPropertyDescriptor
(
Number
,
'
MAX_SAFE_INTEGER
'
);
assert
.
sameValue
(
desc
.
set
,
undefined
,
'
Does not define a `get` accessor
'
);
assert
.
sameValue
(
desc
.
get
,
undefined
,
'
Does not define a `set` accessor
'
);
assert
.
sameValue
(
desc
.
value
,
9007199254740991
);
verifyNotEnumerable
(
Number
,
'
MAX_SAFE_INTEGER
'
);
verifyNotWritable
(
Number
,
'
MAX_SAFE_INTEGER
'
);
verifyNotConfigurable
(
Number
,
'
MAX_SAFE_INTEGER
'
);
This diff is collapsed.
Click to expand it.
test/built-ins/Number/MIN_SAFE_INTEGER.js
0 → 100644
+
23
−
0
View file @
cb19235b
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Property descriptor for `Number.MIN_SAFE_INTEGER`
esid: sec-number.min_safe_integer
es6id: 20.1.2.8
info: >
The value of Number.MIN_SAFE_INTEGER is −9007199254740991
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.
includes: [propertyHelper.js]
---*/
var
desc
=
Object
.
getOwnPropertyDescriptor
(
Number
,
'
MIN_SAFE_INTEGER
'
);
assert
.
sameValue
(
desc
.
set
,
undefined
,
'
Does not define a `get` accessor
'
);
assert
.
sameValue
(
desc
.
get
,
undefined
,
'
Does not define a `set` accessor
'
);
assert
.
sameValue
(
desc
.
value
,
-
9007199254740991
);
verifyNotEnumerable
(
Number
,
'
MIN_SAFE_INTEGER
'
);
verifyNotWritable
(
Number
,
'
MIN_SAFE_INTEGER
'
);
verifyNotConfigurable
(
Number
,
'
MIN_SAFE_INTEGER
'
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment