Fix a typo in Object.getOwnPropertyNames test (#2612)
With the change the test file truly checks the corresponding part of the standard (ECMAScript v5, 15.2.3.4.1). JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
committed by
Akos Kiss
parent
f9e21540d6
commit
8e28316b1a
@@ -65,7 +65,7 @@ assert (props.length === 2);
|
||||
|
||||
// Test non-object argument
|
||||
try {
|
||||
Object.getOwnPrototypeNames("hello");
|
||||
Object.getOwnPropertyNames("hello");
|
||||
assert (false);
|
||||
} catch (e) {
|
||||
assert (e instanceof TypeError);
|
||||
|
||||
Reference in New Issue
Block a user