mirror of
https://github.com/robertkrimen/otto
synced 2025-10-12 20:27:30 +08:00
Fix Date built-in attribute defaults (true, false, true)
This commit is contained in:
parent
55565afada
commit
32164a41c9
|
@ -94,6 +94,11 @@ func TestDate(t *testing.T) {
|
|||
// Date()
|
||||
test(`typeof Date()`, "string")
|
||||
test(`typeof Date(2006, 1, 2)`, "string")
|
||||
|
||||
test(`
|
||||
abc = Object.getOwnPropertyDescriptor(Date, "parse");
|
||||
[ abc.value === Date.parse, abc.writable, abc.enumerable, abc.configurable ];
|
||||
`, "true,true,false,true")
|
||||
}
|
||||
|
||||
func TestDate_parse(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user