| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index a116e1762de47a8f73986786ad8d20499aba2d30..213ff52add27d86d4f4459334d7ef82ecff7bf6b 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -21900,3 +21900,18 @@ TEST(AccessCheckedIsConcatSpreadable) {
|
| ExpectTrue("result.length === 1");
|
| ExpectTrue("object[Symbol.isConcatSpreadable] === undefined");
|
| }
|
| +
|
| +
|
| +TEST(ArrayIteratorMethods) {
|
| + v8::Isolate* isolate = CcTest::isolate();
|
| + v8::HandleScope scope(isolate);
|
| + LocalContext env;
|
| +
|
| + env->Global()->Set(v8_str("keys"), v8::Array::GetKeysIterator(isolate));
|
| + env->Global()->Set(v8_str("values"), v8::Array::GetValuesIterator(isolate));
|
| + env->Global()->Set(v8_str("entries"), v8::Array::GetEntriesIterator(isolate));
|
| +
|
| + ExpectString("typeof keys", "function");
|
| + ExpectString("typeof values", "function");
|
| + ExpectString("typeof entries", "function");
|
| +}
|
|
|