tc39 / test262

Official ECMAScript Conformance Test Suite
Other
2.41k stars 468 forks source link

What is this test doing? #1103

Open leobalter opened 7 years ago

leobalter commented 7 years ago

https://github.com/tc39/test262/blob/master/test/built-ins/global/S10.2.3_A1.1_T1.js

As @lyzadanger mentioned in a private chat:

In the ES5 spec there’s language about how there’s a, something something everything starts out as null, (...) specifically null

I believe this file is not living in the correct folder anyway.

Should this be moved to a folder or files properly checking the values or is this already covered somewhere else? In the latter, maybe we should remove remove the file as a duplicate.

lyzadanger commented 7 years ago

I recognize that my, uh, scientific analysis there isn't going to win any awards 😁 !

rwaldron commented 7 years ago

@lyzadanger can find the section that you're referring?

lyzadanger commented 7 years ago

Hi @rwaldron; it seems slightly cross-referenced to https://es5.github.io/#x10.2.3, which includes:

The global environment is a unique Lexical Environment which is created before any ECMAScript code is executed. The global environment’s Environment Record is an object environment record whose binding object is the global object (15.1). The global environment’s outer environment reference is null.

Note the last sentence. I was wondering if that was the stimulus for writing a bunch of tests that test for null.

rwaldron commented 7 years ago

What is this test doing?

It's doing nothing that's observable via the spec. I'm marking this for deletion

rwaldron commented 7 years ago

I take that back, I'm not going to delete these, they just need to be updated