| OLD | NEW |
| 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 22375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22386 CheckCorrectThrow("has_own_property(other, 'x')"); | 22386 CheckCorrectThrow("has_own_property(other, 'x')"); |
| 22387 CheckCorrectThrow("%GetProperty(other, 'x')"); | 22387 CheckCorrectThrow("%GetProperty(other, 'x')"); |
| 22388 CheckCorrectThrow("%SetProperty(other, 'x', 'foo', 0)"); | 22388 CheckCorrectThrow("%SetProperty(other, 'x', 'foo', 0)"); |
| 22389 CheckCorrectThrow("%AddNamedProperty(other, 'x', 'foo', 1)"); | 22389 CheckCorrectThrow("%AddNamedProperty(other, 'x', 'foo', 1)"); |
| 22390 CheckCorrectThrow("%DeleteProperty_Sloppy(other, 'x')"); | 22390 CheckCorrectThrow("%DeleteProperty_Sloppy(other, 'x')"); |
| 22391 CheckCorrectThrow("%DeleteProperty_Strict(other, 'x')"); | 22391 CheckCorrectThrow("%DeleteProperty_Strict(other, 'x')"); |
| 22392 CheckCorrectThrow("%DeleteProperty_Sloppy(other, '1')"); | 22392 CheckCorrectThrow("%DeleteProperty_Sloppy(other, '1')"); |
| 22393 CheckCorrectThrow("%DeleteProperty_Strict(other, '1')"); | 22393 CheckCorrectThrow("%DeleteProperty_Strict(other, '1')"); |
| 22394 CheckCorrectThrow("Object.prototype.hasOwnProperty.call(other, 'x')"); | 22394 CheckCorrectThrow("Object.prototype.hasOwnProperty.call(other, 'x')"); |
| 22395 CheckCorrectThrow("%HasProperty('x', other)"); | 22395 CheckCorrectThrow("%HasProperty('x', other)"); |
| 22396 CheckCorrectThrow("%PropertyIsEnumerable(other, 'x')"); | 22396 CheckCorrectThrow("Object.prototype.propertyIsEnumerable(other, 'x')"); |
| 22397 // PROPERTY_ATTRIBUTES_NONE = 0 | 22397 // PROPERTY_ATTRIBUTES_NONE = 0 |
| 22398 CheckCorrectThrow("%DefineAccessorPropertyUnchecked(" | 22398 CheckCorrectThrow("%DefineAccessorPropertyUnchecked(" |
| 22399 "other, 'x', null, null, 1)"); | 22399 "other, 'x', null, null, 1)"); |
| 22400 | 22400 |
| 22401 // Reset the failed access check callback so it does not influence | 22401 // Reset the failed access check callback so it does not influence |
| 22402 // the other tests. | 22402 // the other tests. |
| 22403 isolate->SetFailedAccessCheckCallbackFunction(NULL); | 22403 isolate->SetFailedAccessCheckCallbackFunction(NULL); |
| 22404 } | 22404 } |
| 22405 | 22405 |
| 22406 | 22406 |
| (...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25446 | 25446 |
| 25447 // Put the function into context1 and call it. Since the access check | 25447 // Put the function into context1 and call it. Since the access check |
| 25448 // callback always returns true, the call succeeds even though the tokens | 25448 // callback always returns true, the call succeeds even though the tokens |
| 25449 // are different. | 25449 // are different. |
| 25450 context1->Enter(); | 25450 context1->Enter(); |
| 25451 context1->Global()->Set(context1, v8_str("fun"), fun).FromJust(); | 25451 context1->Global()->Set(context1, v8_str("fun"), fun).FromJust(); |
| 25452 v8::Local<v8::Value> x_value = CompileRun("fun('x')"); | 25452 v8::Local<v8::Value> x_value = CompileRun("fun('x')"); |
| 25453 CHECK_EQ(42, x_value->Int32Value(context1).FromJust()); | 25453 CHECK_EQ(42, x_value->Int32Value(context1).FromJust()); |
| 25454 context1->Exit(); | 25454 context1->Exit(); |
| 25455 } | 25455 } |
| OLD | NEW |