| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index d97aef060dc99575a5f45ae5344fce4180e3594b..24124a3c8ab20a4a3b0d7f5a25d73348ba7618aa 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -9183,17 +9183,6 @@ TEST(AccessControl) {
|
| ExpectUndefined(
|
| "Object.getOwnPropertyDescriptor(other, 'js_accessor_p')");
|
|
|
| - // Enable ACCESS_HAS.
|
| - allowed_access_type[v8::ACCESS_HAS] = true;
|
| - ExpectUndefined("other.js_accessor_p");
|
| - ExpectUndefined(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').get");
|
| - ExpectUndefined(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').set");
|
| - ExpectUndefined(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').value");
|
| - allowed_access_type[v8::ACCESS_HAS] = false;
|
| -
|
| // Enable both ACCESS_HAS and ACCESS_GET.
|
| allowed_access_type[v8::ACCESS_HAS] = true;
|
| allowed_access_type[v8::ACCESS_GET] = true;
|
| @@ -9201,45 +9190,13 @@ TEST(AccessControl) {
|
| ExpectString("other.js_accessor_p", "getter");
|
| ExpectObject(
|
| "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').get", getter);
|
| - ExpectUndefined(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').set");
|
| - ExpectUndefined(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').value");
|
| -
|
| - allowed_access_type[v8::ACCESS_GET] = false;
|
| - allowed_access_type[v8::ACCESS_HAS] = false;
|
| -
|
| - // Enable both ACCESS_HAS and ACCESS_SET.
|
| - allowed_access_type[v8::ACCESS_HAS] = true;
|
| - allowed_access_type[v8::ACCESS_SET] = true;
|
| -
|
| - ExpectUndefined("other.js_accessor_p");
|
| - ExpectUndefined(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').get");
|
| ExpectObject(
|
| "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').set", setter);
|
| ExpectUndefined(
|
| "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').value");
|
|
|
| - allowed_access_type[v8::ACCESS_SET] = false;
|
| allowed_access_type[v8::ACCESS_HAS] = false;
|
| -
|
| - // Enable both ACCESS_HAS, ACCESS_GET and ACCESS_SET.
|
| - allowed_access_type[v8::ACCESS_HAS] = true;
|
| - allowed_access_type[v8::ACCESS_GET] = true;
|
| - allowed_access_type[v8::ACCESS_SET] = true;
|
| -
|
| - ExpectString("other.js_accessor_p", "getter");
|
| - ExpectObject(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').get", getter);
|
| - ExpectObject(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').set", setter);
|
| - ExpectUndefined(
|
| - "Object.getOwnPropertyDescriptor(other, 'js_accessor_p').value");
|
| -
|
| - allowed_access_type[v8::ACCESS_SET] = false;
|
| allowed_access_type[v8::ACCESS_GET] = false;
|
| - allowed_access_type[v8::ACCESS_HAS] = false;
|
|
|
| // Access an element with JS accessor.
|
| CompileRun("other[42] = 2");
|
| @@ -9247,51 +9204,17 @@ TEST(AccessControl) {
|
| ExpectUndefined("other[42]");
|
| ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42')");
|
|
|
| - // Enable ACCESS_HAS.
|
| - allowed_access_type[v8::ACCESS_HAS] = true;
|
| - ExpectUndefined("other[42]");
|
| - ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').get");
|
| - ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').set");
|
| - ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').value");
|
| - allowed_access_type[v8::ACCESS_HAS] = false;
|
| -
|
| // Enable both ACCESS_HAS and ACCESS_GET.
|
| allowed_access_type[v8::ACCESS_HAS] = true;
|
| allowed_access_type[v8::ACCESS_GET] = true;
|
|
|
| ExpectString("other[42]", "el_getter");
|
| ExpectObject("Object.getOwnPropertyDescriptor(other, '42').get", el_getter);
|
| - ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').set");
|
| - ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').value");
|
| -
|
| - allowed_access_type[v8::ACCESS_GET] = false;
|
| - allowed_access_type[v8::ACCESS_HAS] = false;
|
| -
|
| - // Enable both ACCESS_HAS and ACCESS_SET.
|
| - allowed_access_type[v8::ACCESS_HAS] = true;
|
| - allowed_access_type[v8::ACCESS_SET] = true;
|
| -
|
| - ExpectUndefined("other[42]");
|
| - ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').get");
|
| ExpectObject("Object.getOwnPropertyDescriptor(other, '42').set", el_setter);
|
| ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').value");
|
|
|
| - allowed_access_type[v8::ACCESS_SET] = false;
|
| allowed_access_type[v8::ACCESS_HAS] = false;
|
| -
|
| - // Enable both ACCESS_HAS, ACCESS_GET and ACCESS_SET.
|
| - allowed_access_type[v8::ACCESS_HAS] = true;
|
| - allowed_access_type[v8::ACCESS_GET] = true;
|
| - allowed_access_type[v8::ACCESS_SET] = true;
|
| -
|
| - ExpectString("other[42]", "el_getter");
|
| - ExpectObject("Object.getOwnPropertyDescriptor(other, '42').get", el_getter);
|
| - ExpectObject("Object.getOwnPropertyDescriptor(other, '42').set", el_setter);
|
| - ExpectUndefined("Object.getOwnPropertyDescriptor(other, '42').value");
|
| -
|
| - allowed_access_type[v8::ACCESS_SET] = false;
|
| allowed_access_type[v8::ACCESS_GET] = false;
|
| - allowed_access_type[v8::ACCESS_HAS] = false;
|
|
|
| v8::Handle<Value> value;
|
|
|
|
|