haikuwebkit/JSTests/es6/Object_static_methods_accep...

11 lines
144 B
JavaScript

function test() {
var s = Object.keys('a');
return s.length === 1 && s[0] === '0';
}
if (!test())
throw new Error("Test failed");