Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index d718c8875b5973e11a6cc6151f96bb773f4baa55..a2d0827dc7bf3ac6d54c166fd39e14f76a3b1042 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -2286,7 +2286,8 @@ bool v8::Object::Set(v8::Handle<Value> key, v8::Handle<Value> value, |
| self, |
| key_obj, |
| value_obj, |
| - static_cast<PropertyAttributes>(attribs)); |
| + static_cast<PropertyAttributes>(attribs), |
| + i::kNonStrictMode); // TODO(mmaly): v8::Object::Set API. Needs strict? |
|
Martin Maly
2011/02/27 23:04:04
Do we need to expand the V8 API to allow for stric
Lasse Reichstein
2011/02/28 11:18:30
I'd say to keep it non-strict. The C++-API isn't p
Martin Maly
2011/03/01 01:40:29
Done.
|
| has_pending_exception = obj.is_null(); |
| EXCEPTION_BAILOUT_CHECK(false); |
| return true; |
| @@ -2711,7 +2712,8 @@ bool v8::Object::SetHiddenValue(v8::Handle<v8::String> key, |
| hidden_props, |
| key_obj, |
| value_obj, |
| - static_cast<PropertyAttributes>(None)); |
| + static_cast<PropertyAttributes>(None), |
| + i::kNonStrictMode); // v8::Object::SetHiddenValue doesn't need strict. |
| has_pending_exception = obj.is_null(); |
| EXCEPTION_BAILOUT_CHECK(false); |
| return true; |