mirror of
https://github.com/tc39/test262.git
synced 2025-05-28 02:30:29 +02:00
Eliminate false positives: Object.fromEntries
This commit is contained in:
parent
2e18327af2
commit
628faa5e06
@ -49,6 +49,7 @@ var iterable = {
|
||||
},
|
||||
};
|
||||
|
||||
assert.sameValue(typeof Object.fromEntries, 'function');
|
||||
assert.throws(TypeError, function() {
|
||||
Object.fromEntries(iterable);
|
||||
});
|
||||
|
@ -49,6 +49,7 @@ var iterable = {
|
||||
},
|
||||
};
|
||||
|
||||
assert.sameValue(typeof Object.fromEntries, 'function');
|
||||
assert.throws(TypeError, function() {
|
||||
Object.fromEntries(iterable);
|
||||
});
|
||||
|
@ -45,6 +45,7 @@ var iterable = {
|
||||
},
|
||||
};
|
||||
|
||||
assert.sameValue(typeof Object.fromEntries, 'function');
|
||||
assert.throws(TypeError, function() {
|
||||
Object.fromEntries(iterable);
|
||||
});
|
||||
|
@ -36,6 +36,7 @@ var iterable = {
|
||||
},
|
||||
};
|
||||
|
||||
assert.sameValue(typeof Object.fromEntries, 'function');
|
||||
assert.throws(TypeError, function() {
|
||||
Object.fromEntries(iterable);
|
||||
});
|
||||
|
@ -14,6 +14,7 @@ info: |
|
||||
features: [Object.fromEntries]
|
||||
---*/
|
||||
|
||||
assert.sameValue(typeof Object.fromEntries, 'function');
|
||||
assert.throws(TypeError, function() {
|
||||
Object.fromEntries();
|
||||
});
|
||||
|
@ -7,6 +7,7 @@ esid: sec-object.fromentries
|
||||
features: [Object.fromEntries]
|
||||
---*/
|
||||
|
||||
assert.sameValue(typeof Object.fromEntries, 'function');
|
||||
assert.throws(TypeError, function() {
|
||||
Object.fromEntries(['ab']);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user