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
4388f286
Commit
4388f286
authored
9 years ago
by
Leonardo Balter
Committed by
Gorkem Yakin
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow call testWithTypedArrayConstructors with a constructors subset
parent
35dce20e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
harness/testTypedArray.js
+6
-4
6 additions, 4 deletions
harness/testTypedArray.js
with
6 additions
and
4 deletions
harness/testTypedArray.js
+
6
−
4
View file @
4388f286
...
...
@@ -13,7 +13,7 @@ var typedArrayConstructors = [
Uint32Array
,
Uint16Array
,
Uint8Array
,
Uint8ClampedArray
,
Uint8ClampedArray
];
/**
...
...
@@ -32,10 +32,12 @@ var TypedArray = Object.getPrototypeOf(Int8Array);
* Calls the provided function for every typed array constructor.
*
* @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor.
* @param {Array} selected - An optional Array with filtered typed arrays
*/
function
testWithTypedArrayConstructors
(
f
)
{
for
(
var
i
=
0
;
i
<
typedArrayConstructors
.
length
;
++
i
)
{
var
constructor
=
typedArrayConstructors
[
i
];
function
testWithTypedArrayConstructors
(
f
,
selected
)
{
var
constructors
=
selected
||
typedArrayConstructors
;
for
(
var
i
=
0
;
i
<
constructors
.
length
;
++
i
)
{
var
constructor
=
constructors
[
i
];
try
{
f
(
constructor
);
}
catch
(
e
)
{
...
...
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