Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: test/cctest/test-api.cc

Issue 1742283002: Move hasOwnProperty to builtins.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/bootstrapper.cc ('K') | « src/runtime/runtime-object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 22047 matching lines...) Expand 10 before | Expand all | Expand 10 after
22058 CheckCorrectThrow("other[1]"); 22058 CheckCorrectThrow("other[1]");
22059 CheckCorrectThrow("JSON.stringify(other)"); 22059 CheckCorrectThrow("JSON.stringify(other)");
22060 CheckCorrectThrow("has_own_property(other, 'x')"); 22060 CheckCorrectThrow("has_own_property(other, 'x')");
22061 CheckCorrectThrow("%GetProperty(other, 'x')"); 22061 CheckCorrectThrow("%GetProperty(other, 'x')");
22062 CheckCorrectThrow("%SetProperty(other, 'x', 'foo', 0)"); 22062 CheckCorrectThrow("%SetProperty(other, 'x', 'foo', 0)");
22063 CheckCorrectThrow("%AddNamedProperty(other, 'x', 'foo', 1)"); 22063 CheckCorrectThrow("%AddNamedProperty(other, 'x', 'foo', 1)");
22064 CheckCorrectThrow("%DeleteProperty_Sloppy(other, 'x')"); 22064 CheckCorrectThrow("%DeleteProperty_Sloppy(other, 'x')");
22065 CheckCorrectThrow("%DeleteProperty_Strict(other, 'x')"); 22065 CheckCorrectThrow("%DeleteProperty_Strict(other, 'x')");
22066 CheckCorrectThrow("%DeleteProperty_Sloppy(other, '1')"); 22066 CheckCorrectThrow("%DeleteProperty_Sloppy(other, '1')");
22067 CheckCorrectThrow("%DeleteProperty_Strict(other, '1')"); 22067 CheckCorrectThrow("%DeleteProperty_Strict(other, '1')");
22068 CheckCorrectThrow("%HasOwnProperty(other, 'x')"); 22068 CheckCorrectThrow("Object.prototype.hasOwnProperty.call(other, 'x')");
22069 CheckCorrectThrow("%HasProperty('x', other)"); 22069 CheckCorrectThrow("%HasProperty('x', other)");
22070 CheckCorrectThrow("%PropertyIsEnumerable(other, 'x')"); 22070 CheckCorrectThrow("%PropertyIsEnumerable(other, 'x')");
22071 // PROPERTY_ATTRIBUTES_NONE = 0 22071 // PROPERTY_ATTRIBUTES_NONE = 0
22072 CheckCorrectThrow("%DefineAccessorPropertyUnchecked(" 22072 CheckCorrectThrow("%DefineAccessorPropertyUnchecked("
22073 "other, 'x', null, null, 1)"); 22073 "other, 'x', null, null, 1)");
22074 22074
22075 // Reset the failed access check callback so it does not influence 22075 // Reset the failed access check callback so it does not influence
22076 // the other tests. 22076 // the other tests.
22077 isolate->SetFailedAccessCheckCallbackFunction(NULL); 22077 isolate->SetFailedAccessCheckCallbackFunction(NULL);
22078 } 22078 }
(...skipping 2893 matching lines...) Expand 10 before | Expand all | Expand 10 after
24972 CHECK(proxy->GetTarget()->SameValue(target)); 24972 CHECK(proxy->GetTarget()->SameValue(target));
24973 CHECK(proxy->GetHandler()->SameValue(handler)); 24973 CHECK(proxy->GetHandler()->SameValue(handler));
24974 24974
24975 proxy->Revoke(); 24975 proxy->Revoke();
24976 CHECK(proxy->IsProxy()); 24976 CHECK(proxy->IsProxy());
24977 CHECK(!target->IsProxy()); 24977 CHECK(!target->IsProxy());
24978 CHECK(proxy->IsRevoked()); 24978 CHECK(proxy->IsRevoked());
24979 CHECK(proxy->GetTarget()->SameValue(target)); 24979 CHECK(proxy->GetTarget()->SameValue(target));
24980 CHECK(proxy->GetHandler()->IsNull()); 24980 CHECK(proxy->GetHandler()->IsNull());
24981 } 24981 }
OLDNEW
« src/bootstrapper.cc ('K') | « src/runtime/runtime-object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698